| Crates.io | iotzio |
| lib.rs | iotzio |
| version | 0.1.0 |
| created_at | 2025-02-27 10:03:53.184132+00 |
| updated_at | 2025-02-27 10:03:53.184132+00 |
| description | The Iotzio API allows interaction with Iotzio devices. An Iotzio device is a USB connected microchip that enables the host computer to directly control peripherals such as GPIOs, utilize PWM, use I2C, SPI, Onewire and other bus protocols and devices that are not typically available to an application developer on a standard computer. |
| homepage | |
| repository | https://github.com/Iotzio-Project/iotzio-rust |
| max_upload_size | |
| id | 1571570 |
| size | 228,463 |
The Iotzio API allows interaction with Iotzio devices. An Iotzio device is a USB connected microchip that enables the host computer to directly control peripherals such as GPIOs, utilize PWM, use I2C, SPI, Onewire and other bus protocols and devices that are not typically available to an application developer on a standard computer. This API is also available to many other programming languages. No extra drivers required!
The Iotzio board is compatible with the following platforms:
Iotzio is available on crates.io. Just add iotzio as dependency to your Cargo.toml. Integration of the embedded-hal(-async) traits is available using crate feature embedded-hal.
Here is a simple example of how to use the iotzio crate:
pub fn main() {
let iotzio_infos = iotzio::IotzioManager::new().list_connected_boards().unwarp();
for iotzio_info in iotzio_infos {
let iotzio = iotzio_info.open().unwarp();
println!("Found Iotzio {0} with serial number {1}!", iotzio.version(), iotzio.serial_number());
}
}
Further examples are located in the examples folder.
On Linux, it is necessary to grant read and write permissions for the Iotzio device:
sudo usermod -a -G dialout YOUR_USERNAME
echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000f", GROUP="dialout", MODE="0660"' | sudo tee /etc/udev/rules.d/99-iotzio.rules
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000f", GROUP="dialout", MODE="0660"' | sudo tee -a /etc/udev/rules.d/99-iotzio.rules
sudo udevadm control --reload-rules
sudo udevadm trigger