problem is that it's called in interval and there is a high chance that during the day LED may flash in between the checks.
I still want to capture the LED flash, which is done through setWatch.
Why there was pinmode set in the original code before the setWatch? Maybe it's a key to my understanding
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.
problem is that it's called in interval and there is a high chance that during the day LED may flash in between the checks.
I still want to capture the LED flash, which is done through setWatch.
Why there was pinmode set in the original code before the setWatch? Maybe it's a key to my understanding