The title says it all: Is there any hope to get, at run time, the various instants at which all the run/sleep/deep sleep modes were entered by the interpreter? Cumulated times spents in each mode would be a way to quantify easily the power consumption...
Ok, (re) found setBusyIndicator which should show when running and not sleeping: I have to test that...
Aside of time measurements, it would also give an idea of the eventuals problems of lost data when getting out of deep sleep mode.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
The title says it all: Is there any hope to get, at run time, the various instants at which all the run/sleep/deep sleep modes were entered by the interpreter? Cumulated times spents in each mode would be a way to quantify easily the power consumption...
Ok, (re) found setBusyIndicator which should show when running and not sleeping: I have to test that...
Aside of time measurements, it would also give an idea of the eventuals problems of lost data when getting out of deep sleep mode.
Thanks for your attention.