Hi!
The issue is that the menu likes to stay around until it is explicitly removed - there are a few cases where it's handy.
However all you need to do is call E.showMenu(); to remove the menu:
E.showMenu();
var mainMenu = { "": { "title": "Menu" }, "Start a game": () => { E.showMenu(); // <------------------------ this startGame() }, "Exit" : () => closeApp(), };
@Gordon started
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!
The issue is that the menu likes to stay around until it is explicitly removed - there are a few cases where it's handy.
However all you need to do is call
E.showMenu();
to remove the menu: