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
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 Embedded HAL for Apache #NuttX RTOS has been published on crates.io ... Ready to be used in your own NuttX Rust Apps! 👍
https://github.com/lupyuen/rust-i2c-nuttx#rust-embedded-hal-for-nuttx
Here are the #NuttX I2C Types ... Ported from C to #RustLang
https://github.com/lupyuen/rust-i2c-nuttx#read-i2c-register-in-rust