Reading a #BL602 #ADC Channel with DMA
https://lupyuen.github.io/articles/adc?4#read-the-adc-channel
How we init a #BL602 #ADC Channel in our C Firmware
https://lupyuen.github.io/articles/adc?3#initialise-the-adc-channel
#PineCone #BL602 Light Sensor (improvised) ... Tested OK with #Pinebook Pro @PINE64 yay! 🎉
https://github.com/lupyuen/bl_iot_sdk/blob/adc/customer_app/sdk_app_rust_adc/rust/src/lib.rs
#BL602 LED becomes Light Sensor ... Thanks to #RustLang ADC Firmware!
https://github.com/lupyuen/bl_iot_sdk/blob/adc/customer_app/sdk_app_rust_adc/rust/src/lib.rs
Building #BL602 #RustLang Firmware gets simpler ... Rust Wrapper for BL602 IoT SDK is now auto-downloaded from crates.io
https://github.com/lupyuen/bl_iot_sdk/blob/adc/customer_app/sdk_app_rust_adc/run.sh
Testing the Light Sensor on #PineCone #BL602 @PINE64 ... Actually we're reading the LED via ADC with #RustLang
https://github.com/lupyuen/bl_iot_sdk/blob/adc/customer_app/sdk_app_rust_adc/rust/src/lib.rs
#RustLang reminds us to be Extra Careful when Casting C Pointers ... Because it's unsafe and can go horribly wrong
Here's how we call the #BL602 #RustLang Wrapper for GPIO
https://github.com/lupyuen/bl_iot_sdk/blob/adc/customer_app/sdk_app_rust_gpio/rust/src/lib.rs
IoT Techie and Educator / Apache NuttX PMC