Both green and brown are ground?
You should be able to just connect between the 3V and GND pins on Espruino, and then use pin D1 or D2?
You may not need pinMode(meterPin,"input_pullup") - try first without it and see.
pinMode(meterPin,"input_pullup")
@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.
Both green and brown are ground?
You should be able to just connect between the 3V and GND pins on Espruino, and then use pin D1 or D2?
You may not need
pinMode(meterPin,"input_pullup")
- try first without it and see.