From: Jan "Yenya" Kasprzak Date: Tue, 18 Jun 2013 15:36:41 +0000 (+0200) Subject: PWMLED: proof-of-concept brightness setting X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=5f604897b4f9a6f0602034f83c70105d94d073e6;hp=5f604897b4f9a6f0602034f83c70105d94d073e6;p=bike-lights.git PWMLED: proof-of-concept brightness setting In order to save space for patterns, we set the brightness independently from pattern. Each brightness has only two levels for PWMLED 0 and 2, and one for PWMLED 1. Patterns can then use two-bit values for each PWMLED (one-bit for PWMLED 1), with the following meaning: 0: off 1: level 1 2: level 2 3: also level 2, with a separate state stored. This can be used for saving regulation value for a single current level with and without other outputs running, or with different levels of other output. This is in order to avoid flicker when one PWMLED (usually the front one) is steady on, and the others are blinking. ---