Does anyone know a way to call an interrupt when an Arduino loses power to have it fire a small function real quick?
It'd be a quick EEPROM write of one variable.
I know you can use interrupts on certain pins when they get pulled low, I'm just not sure if it's possible on the power pin.
Or if there would still be enough power in the controller to finish that function.
I have the Node MCU board but it's programmed in Arduino c++.