I started getting into developing. I followed the Clock face tutorial. Later into the tuorial, power saving is introduced. It uses the Bangle.on('lcdPower') to stop the interval for drawing the clock and resumes it if the event is on, at least from my understanding.
This didn't work when my screen went dark, so I added a Terminal.println("Work"); to the function block, and it didn't show up on screen either (Debug Info is set to show ofc). Either I misunderstand this event handling, the event itself, the terminal call, or some other code in this mix and its supposed to not show this, or the event doesn't work.
MWE to paste into the left side of the IDE, per my understanding:
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 there,
I started getting into developing. I followed the Clock face tutorial. Later into the tuorial, power saving is introduced. It uses the
Bangle.on('lcdPower')
to stop the interval for drawing the clock and resumes it if the event is on, at least from my understanding.This didn't work when my screen went dark, so I added a
Terminal.println("Work");
to the function block, and it didn't show up on screen either (Debug Info is set to show ofc). Either I misunderstand this event handling, the event itself, the terminal call, or some other code in this mix and its supposed to not show this, or the event doesn't work.MWE to paste into the left side of the IDE, per my understanding:
Firmware is the latest released: 2v11, 531080858
Glad to hear where I went wrong :D
~Poolitzer