AHT10 Rust Library
Why?
I haven't found a driver that works simply (without async 😉 ) for an embedded environment and #no_std
.
Usage
First, create the AHT10 struct, with your I2C
let mut aht = AHT10 new;
Then, initialize the sensor
match aht.initialize
Finally, read the data:
match aht.read_data ;
Example
There is only one example named rp_pico_aht10
. It uses GPIOs 2 & 3 (SDA & SCL respectively) and print data on USB serial port.