Detecting Bangle JS 2 backlight events

Posted on
  • Hi,

    I'm working on a custom watchface, and would like to make use of the heart rate monitor.

    My plan, to avoid excess battery use, is to only measure and show the heart rate when the backlight is turned on. Ie, the user has pressed the button, twisted their wrist, or has done some other action that they have configured to turn on the backlight)

    I've seen there is an event, 'lcdPower', but this doesn't seem to trigger. Maybe I'm doing something wrong, or maybe it's only for the original Bangle's LCD and not the Bangle 2..

    Is there a way to get an event when the LCD backlight is turned on?

    Cheers,
    Joppy

  • I think you're looking for the lock event

  • Thanks rigrig,

    I didn't realize that the touch-screen actually unlocked when doing a wrist twist. I think this will work for what I'm trying to do :3

    Cheers,
    Joppy

  • I didn't realize that the touch-screen actually unlocked when doing a wrist twist.

    There's an option (on by default) for that in settings - but if you want to detect a write twist then there are specific events for that too

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

Detecting Bangle JS 2 backlight events

Posted by Avatar for JoppyFurr @JoppyFurr

Actions