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 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'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
#RustLang Driver for BME280 Sensor works on Apache #NuttX RTOS ... Without any changes!
https://lupyuen.github.io/articles/rusti2c?5#rust-driver-for-bme280
@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/
Here's how we call #RustLang Embedded HAL to read an I2C Register ... Our #NuttX I2C App is much simpler now!
https://github.com/lupyuen/rust-i2c-nuttx#read-i2c-register