]> www.fi.muni.cz Git - bike-lights.git/commit
logic for setting brightness
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 26 Jun 2013 21:55:59 +0000 (23:55 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 26 Jun 2013 21:55:59 +0000 (23:55 +0200)
commit94524330d5709845fe0bbe8562fd68deedcb818c
tree85b0bd3e3e705d3b50af176832e0e0ce03b55734
parent783dec62b5002f6e1c1ff4417659d32b46aa5407
logic for setting brightness

We set the brightness in an universal function pwmled_select_brightness(),
and this function is called on various events, such as
- ambient light zone change
- dim mode toggle

For now, dim mode means different brightness only for night-ish modes,
because for day modes, slow_pattern uses level 1 as main brightness.
firmware/ambient.c
firmware/control.c
firmware/lights.h