Pulse Width Modulation idle brightness

Posted on
  • The lowest value for setLCDBrightness is 0.002

    int b = (int)(v*256 + 0.5);

    gives 1.

    There is a lot of flicker when idle because irregular frametimes due to peripheral poll. HR + accel.

    Bangle.setPollInterval(4000);

    default is 80ms.
    But 4000ms seems to make the flicker much less severe. If you are not using HR/accel, it might come in handy.

  • Thanks - yes, I can imagine that really helps.

    It's unfortunate that the Bangle's backlight isn't on an IO pin, so it can't be controlled by hardware PWM - it has to be software (using the same I2C interface used for accelerometer/etc), and that means other things interfere.

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

Pulse Width Modulation idle brightness

Posted by Avatar for d3nd3-o0 @d3nd3-o0

Actions