Skip to main content
NAfri.1
Associate
August 1, 2022
Question

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

  • August 1, 2022
  • 1 reply
  • 1268 views

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*

This topic has been closed for replies.

1 reply

Nikita91
Lead II
August 1, 2022

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

NAfri.1
NAfri.1Author
Associate
August 1, 2022

Thanks, i will need to read more on EEPROM.

Javier1
Principal
August 1, 2022

@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

hit me up in https://www.linkedin.com/in/javiermuñoz/