Did you ever set pinMode(pin,"mode") of C9 to "output"?
If not, it is still on automatic setting mode, which means that a write makes it an output, and a read makes it an input... and as soon the read happens, the 'feeding' of your circuitry with power stops.
Furthermore, I think, you may need to put a power driver in there... either a PNP or PMOS thing to get more juice to the circuitry while pin is high (active switching/feed). This allows you then also to feed directly from the battery - or even higher voltage source, if you desire so. Higher voltage source requires a little different circuitry (pin low, passive switching/feed).
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.
Did you ever set pinMode(pin,"mode") of C9 to "output"?
If not, it is still on automatic setting mode, which means that a write makes it an output, and a read makes it an input... and as soon the read happens, the 'feeding' of your circuitry with power stops.
Furthermore, I think, you may need to put a power driver in there... either a PNP or PMOS thing to get more juice to the circuitry while pin is high (active switching/feed). This allows you then also to feed directly from the battery - or even higher voltage source, if you desire so. Higher voltage source requires a little different circuitry (pin low, passive switching/feed).