Ahh, great - did it come up with any kind of error, or did it just crash without warning?
I just realised something - try replacing HIGH with 1 and LOW with 0. Espruino doesn't define those constants, so they'll just be being read as undefined which will produce a logic 0.
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.
Ahh, great - did it come up with any kind of error, or did it just crash without warning?
I just realised something - try replacing
HIGH
with1
andLOW
with0
. Espruino doesn't define those constants, so they'll just be being read as undefined which will produce a logic 0.