You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
Use an Espruino instead of an oscilloscope! I run the Web IDE on my computer and the application what @AkosLukacs made on my tablet. It helped me a lot!
The Espruino INA226 project: https://www.hackster.io/akos-lukacs/blenergygraphs-7e7b9c
Ahh, ok. As I remember, it works like Puck.js - but since the UART pins are always powered it always initialises the UART.
Serial1.setConsole(false)won't do what you expect, but you should be able to disable the UART by just using
digitalRead(..)on the 2 UART pins to swap them away from being UART pins to normal GPIO.
Measuring the power usage is always a pain. I tend to use an oscilloscope to measure the voltage drop across a known resistance (some can even average readings to give you a good idea of average consumption) - but there must be a better tool for the job - I'll have to try the Nordic Profiler out.
Great news about the development - I just saw the puckyActive post mentioned you as well :) I'm actually totally happy for anyone to use Espruino on their own devices in production too - it is Open Source after all. It's just making sure I spend my time helping users of Espruino boards, or doing stuff that will lead to more people buying them :)