Below you can find some example code to illustrate my problem.
When I select "Start a game" in the menu, I start my game. But when I press BTN1 "in the game", the menu keeps flashing and when I press BTN1 / BTN2, the menu items are selected again and the game function for these buttons are activated too.
So how can I stop the built in button watches of the E.showMenu() function? Or what am I doing wrong?
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.
Hi
Below you can find some example code to illustrate my problem.
When I select "Start a game" in the menu, I start my game. But when I press BTN1 "in the game", the menu keeps flashing and when I press BTN1 / BTN2, the menu items are selected again and the game function for these buttons are activated too.
So how can I stop the built in button watches of the E.showMenu() function? Or what am I doing wrong?
Greets
Stijn