Here's how we call #NuttX's I2C Interface from #RustLang ... The "unsafe" way
https://github.com/lupyuen/rust-i2c-nuttx#read-i2c-register-in-rust
Here are the #NuttX I2C Types ... Ported from C to #RustLang
https://github.com/lupyuen/rust-i2c-nuttx#read-i2c-register-in-rust
Our #NuttX App writes to an I2C Register ... By calling #RustLang Embedded HAL
https://github.com/lupyuen/rust-i2c-nuttx#write-i2c-register
Logic Analyser shows that #RustLang on #BL602 wrote the Wrong Value to our I2C Register ... Let's fix this 🤔
https://github.com/lupyuen/rust-i2c-nuttx#write-i2c-register
Still having problems with #BL602 I2C Writes ... And the peculiar I2C Sub Addresses ... Grrr 😬
Now that #RustLang Embedded HAL runs OK on Apache #NuttX RTOS ... Let's test the Rust Driver for BME280 Sensor!
https://github.com/lupyuen/rust-i2c-nuttx#rust-embedded-driver-for-bme280
We add the #RustLang Driver for BME280 Sensor to our #NuttX App ... By editing Cargo.toml
https://github.com/lupyuen/rust-i2c-nuttx#rust-embedded-driver-for-bme280
Here's how we read the BME280 Sensor in our #RustLang App for #NuttX RTOS
https://github.com/lupyuen/rust-i2c-nuttx#rust-embedded-driver-for-bme280
#RustLang Driver for BME280 Sensor ... Runs OK on Apache #NuttX RTOS! 🎉
https://github.com/lupyuen/rust-i2c-nuttx#test-rust-driver-for-bme280
#RustLang Driver for BME280 Sensor works on Apache #NuttX RTOS ... Without any changes!
https://lupyuen.github.io/articles/rusti2c?5#rust-driver-for-bme280
What's inside the #RustLang Embedded HAL for Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?6#nuttx-embedded-hal
Reading an I2C Register with #RustLang on Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?7#read-i2c-register
Here's how we write an I2C Register with #RustLang on Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?8#write-i2c-register
@lupyuen What is that used for?
@kreyren That's the Bosch BME280 Sensor for Temperature, Humidity and Air Pressure: https://www.bosch-sensortec.com/products/environmental-sensors/humidity-sensors-bme280/
@lupyuen Hmm.. can it arduino?
@kreyren Yep there's a BME280 Driver for Arduino: https://create.arduino.cc/projecthub/dragos-iosub/arduino-bme280-sensor-how-to-115560
Here's how our #RustLang app reads the BME280 Sensor ... On Apache #NuttX RTOS
https://lupyuen.github.io/articles/rusti2c?2#read-sensor-data-from-bme280