it just prints 'screen' value in console,
values are from 0 up to 2,
those values correspond to details I see on the OLED display (from functions screens(), screens2() and screens3()
If (screen === 2) and I press BTN11 then my OLED is switched off by disconnecting the VCC line, when I press BTN11 again VCC line is again connected into display and OLED() function starts. The same time I have console.log with value of 'screen'.
When I do this sequence (screen ===2) and BTN11 press again, every time I see more console.logs in WebIDE console window, and program start to slow down, wait for all logs and then react for my button presses, after a while it stock
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.
it just prints 'screen' value in console,
values are from 0 up to 2,
those values correspond to details I see on the OLED display (from functions screens(), screens2() and screens3()
If (screen === 2) and I press BTN11 then my OLED is switched off by disconnecting the VCC line, when I press BTN11 again VCC line is again connected into display and OLED() function starts. The same time I have console.log with value of 'screen'.
When I do this sequence (screen ===2) and BTN11 press again, every time I see more console.logs in WebIDE console window, and program start to slow down, wait for all logs and then react for my button presses, after a while it stock