The set() method lights up LED1 and the read() returns the right state. In addition, read() switches off the LED, so the next call returns false. Is this expected behaviour?
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.
I did some experiments with setting and reading LEDs using firmware 1v52:
The set() method lights up LED1 and the read() returns the right state. In addition, read() switches off the LED, so the next call returns false. Is this expected behaviour?
Best,
Maik