Commit graph

10 commits

Author SHA1 Message Date
2a3db7b9fb Fix EOF newlines 2020-09-02 00:12:14 +02:00
5d1ef2263a Gradually reset maximum/minimum brightness 2020-07-17 23:31:57 +02:00
ee5a5b9f6c Fix light sensor underflow 2020-07-16 23:19:28 +02:00
187c915799 Use integer arithmetic for light sensor 2020-07-16 22:43:39 +02:00
19a78f2527 Use default 8 MHz clock, disable PLL
Reducing the frequency to one sixth increases flickering somewhat, but
it's not too bad. More importantly, the current draw (at 5 V) at the
lowest brightness settings (all LEDs white) is reduced from 13 mA to
about 3 mA.
2020-07-16 16:17:35 +02:00
8c3a471aba Make brightness depend ~linearly on photocurrent 2020-07-15 22:47:55 +02:00
fe246bfa6d Use averaged brightness for limit calculation 2020-07-15 22:44:20 +02:00
75d280c8ea Remove maximum/minimum brightness decay 2020-07-15 14:07:07 +02:00
5ffaee918a Wait for measurement to complete light sensor init 2020-07-15 13:47:59 +02:00
6d63b76a02 Add basic time-based light sensor code 2020-07-11 21:04:07 +02:00