device is drawing around 40mA even when not connected
Wow, that's a lot! Any idea why? Even when executing JS flat out it should only be drawing 4mA or so...
could that be a good reason to add a throw in the code?
Sorry, not sure I understand?
It seemed a lot. I will turn off everything else on the board and make sure its not coming from somewhere else. 4mA idle would be acceptable for now.
@kri100s started
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.
Wow, that's a lot! Any idea why? Even when executing JS flat out it should only be drawing 4mA or so...
Sorry, not sure I understand?