From: Jan "Yenya" Kasprzak Date: Wed, 26 Jun 2013 21:55:59 +0000 (+0200) Subject: logic for setting brightness X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=94524330d5709845fe0bbe8562fd68deedcb818c;hp=94524330d5709845fe0bbe8562fd68deedcb818c;p=bike-lights.git 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. ---