cancel
Showing results for 
Search instead for 
Did you mean: 

How can I track the status of the onboard LED (STM32LO) and write that data to the EEPROM?

NAfri.1
Associate II

Hello everyone,

I have an STM32LO discovery board. Using it for a big project in IoT. How can i track the status of the onboard LED and write that data to the EEPROM? 

Say the led is on, saves that status and duration, then sends it as a packet to TTN.

*Edited by moderation, please keep the title of your question shorter than 70 characters*

3 REPLIES 3
Nikita91
Lead II

As it is your application that drives the LED, you already have all the information, and you can therefore save it.

Thanks, i will need to read more on EEPROM.

@NAfri.1​ what?

Read status of any gpio:https://thecodeprogram.com/access-gpio-pin-states-with-odr-and-idr-in-stm32-stdperiph

Write/read Flash(eeprom?):(i would use RAM if i were you)https://www.youtube.com/watch?v=GGkVkV0nXu8

we dont need to firmware by ourselves, lets talk