On digitalWrite(D2, 1) or digitalWrite(D2, true) led gets turned off and On digitalWrite(D2, 0) or digitalWrite(D2, false) led gets turned on.
@bk 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.
On digitalWrite(D2, 1) or digitalWrite(D2, true) led gets turned off and
On digitalWrite(D2, 0) or digitalWrite(D2, false) led gets turned on.