Great! I think the issue was that the menu was grabbing the UI as you noted.
Either generating the layout when you want to use it (or maybe using E.showMenu(); to disable the menu first) would probably help, but calling layout.setUI(); is a nice solution - that should have the effect of removing the menu (or whatever other thing was on the screen)
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.
Great! I think the issue was that the menu was grabbing the UI as you noted.
Either generating the layout when you want to use it (or maybe using
E.showMenu();
to disable the menu first) would probably help, but callinglayout.setUI();
is a nice solution - that should have the effect of removing the menu (or whatever other thing was on the screen)