Skip to main content
Clarification from asker's comment
Source Link
Chris Stratton
  • 5.4k
  • 19
  • 40

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know if an Arduino is getting switched off or being reset? Like a function would be called before the Arduino gets switched off.

I want to detect this event to preserve a value, where a user resets his Arduino, or switches it off. Is it possible?

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know if an Arduino is getting switched off or being reset? Like a function would be called before the Arduino gets switched off.

I want to detect this event, where a user resets his Arduino, or switches it off. Is it possible?

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know if an Arduino is getting switched off or being reset? Like a function would be called before the Arduino gets switched off.

I want to detect this event to preserve a value, where a user resets his Arduino, or switches it off. Is it possible?

deleted 3 characters in body; edited title
Source Link
dda
  • 1.6k
  • 1
  • 12
  • 17

lifecycle Lifecycle hook in arduinoArduino to know if arduinoArduino is reset or powered down

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know thatif an arduinoArduino is getting switched off or being reset.? Like a function would be called before the arduinoArduino gets switched off.

I want to detect this event, where a user resets his arduinoArduino, or switches it off. Is it possible?

lifecycle hook in arduino to know if arduino is reset or powered down

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know that an arduino is getting switched off or being reset. Like a function would be called before the arduino gets switched off.

I want to detect this event, where a user resets his arduino, or switches it off. Is it possible?

Lifecycle hook in Arduino to know if Arduino is reset or powered down

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know if an Arduino is getting switched off or being reset? Like a function would be called before the Arduino gets switched off.

I want to detect this event, where a user resets his Arduino, or switches it off. Is it possible?

Source Link

lifecycle hook in arduino to know if arduino is reset or powered down

I am new to Arduino programming and I'm really fascinated with its working. Is there a way to know that an arduino is getting switched off or being reset. Like a function would be called before the arduino gets switched off.

I want to detect this event, where a user resets his arduino, or switches it off. Is it possible?