Replace the constant number 30 with a global variable if(steps == 30)
Declare that variable just below the var definitions assignments section
What does that mean????
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.
Sun 2021.08.15
Hi @user133129
Some thoughts as a suggestion, untested:
Replace the constant number 30 with a global variable
if(steps == 30)
Declare that variable just below the var definitions assignments section
Follow along with this discussion on how to capture input:
To flash LEDs
See examples below heading 'On-board LEDs, Button and GPIO'