]> www.fi.muni.cz Git - bike-lights.git/commitdiff
slow ADC inputs
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 28 Mar 2013 22:33:25 +0000 (23:33 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 28 Mar 2013 22:33:25 +0000 (23:33 +0100)
The fastest-repeated measurements are needed for PWM LEDs. OTOH,
things like buttons, battery voltage, ambient lights, etc. can be
read less frequently, and should be read in a deterministic time frame.
So we will measure PWMLED current in the free-running mode (as fast
as possible), and the other "slow" ADC inputs with each PATTERN_DIV-th
timer tick.


No differences found