• I'm making an outdoor app. Apparently, the backlight is not needed under the sunlight and it will save battery as well. I also want to use the touch screen without unlocking the watch while I'm using it. So, I have settings as shown below.

    Bangle.setOptions({backlightTimeout: 0}); 
    Bangle.setBacklight(0);
    Bangle.setLocked(false);
    

    It works fine, but when I call either E.showMessage() or E.showPrompt(), the backlight turns on. It seems these E classes overrides the backlight setting in the code. I can immediately call Bangle.setBacklight(0); to turn it off, but wonder if there is a way to keep the backlight off while I'm running the app.

    Thanks.

  • Why not try: Bangle.setLCDBrightness(0)? Does that work?

  • Thank you, @Gordon!
    Yes, it works! I thought Bangle.setBacklight(0) would do the job, but it didn’t.
    Thanks again for your quick reply. @Gordon, you are the best!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Bangle.js 2 how to keep backlight off while running in an app

Posted by Avatar for JeonLab @JeonLab

Actions