>A0 = input_pulldown
A1 = analog
A4 = analog
A5 = analog
A6 = analog
A7 = analog
B0 = analog
B1 = analog
B3 = analog
B4 = analog
B5 = analog
B6 = af_output
B7 = af_output
B8 = analog
B9 = analog
B10 = analog
B13 = analog
B14 = analog
Going to sleep
>save()
=undefined
Compacting Flash...
Calculating Size...
Writing..
Compressed 114368 bytes to 4919
Running onInit()...
Here is the dump - after reset, upload, save and then reset:
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.
Hey @Robin, you are right, I had been trying a lot of different things at once. Let me try to bring us back to a shared baseline. Here is process.env:
Here is the code - including the state checking:
Here is the console output:
Here is the dump - after reset, upload, save and then reset:
And here is the power consumption: 2.4 mA again.
I'd certainly welcome any ideas.