Porting the #NuttX Sensor Test from C to #ZigLang 😬
https://github.com/lupyuen/visual-zig-nuttx#sensor-test-app-in-c
#ZigLang prints #NuttX Sensor Data as Fixed-Point Numbers
https://github.com/lupyuen/visual-zig-nuttx#floating-point-link-error
Oops here's the correct algo ... Tested OK with #ZigLang "comptime" and "@compileLog" 👍
#ZigLang reads a #NuttX Barometer and Humidity Sensor (Bosch BME280)
https://github.com/lupyuen/visual-zig-nuttx#read-barometer-sensor
Back to #RISCV PineCone #BL602 @PINE64 ... With Bosch BME280 Temperature / Humidity / Air Pressure Sensor
https://github.com/lupyuen/visual-zig-nuttx#connect-bme280-sensor
Apache #NuttX RTOS shows BME280 Sensor as 2 devices ... "baro0" and "humi0"
https://lupyuen.github.io/articles/sensor?2#bosch-bme280-sensor
Reading Sensor Data on Apache #NuttX RTOS ... Here are the steps
https://lupyuen.github.io/articles/sensor?3#read-barometer-sensor
#ZigLang has a "defer" feature ... Super handy for cleaning up! 👍
https://lupyuen.github.io/articles/sensor?4#close-sensor-device-deferred
#ZigLang reads the #NuttX Sensor Data and converts to Fixed-Point Numbers
https://lupyuen.github.io/articles/sensor?5#read-sensor-data
#ZigLang reads the BME280 Humidity Sensor on Apache #NuttX RTOS
https://lupyuen.github.io/articles/sensor?6#read-humidity-sensor
Here's how we import #NuttX Functions into #ZigLang
https://lupyuen.github.io/articles/sensor?7#import-nuttx-functions
Here's why #ZigLang Slices are a little safer than C Strings
Connecting Bosch BME280 Sensor to #RISCV PineCone #BL602
https://lupyuen.github.io/articles/sensor?10#connect-bme280-sensor
Compiling our #ZigLang Sensor App for Apache #NuttX RTOS
https://lupyuen.github.io/articles/sensor?11#compile-zig-app
Our #ZigLang Sensor App works for other #NuttX Sensors too
https://lupyuen.github.io/articles/sensor?15#multiple-sensors
@lupyuen That's a slick feature! It should cut down on the number of instructions used as well as the amount of high level code used.
Cleaning up our #ZigLang Sensor App for Apache #NuttX RTOS
https://github.com/lupyuen/visual-zig-nuttx#clean-up