Yes, Figure 1 is what you'll need, where Vin = the battery voltage, and Vout = pin C0.
@Gordon 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.
Yes, Figure 1 is what you'll need, where Vin = the battery voltage, and Vout = pin C0.