]> www.fi.muni.cz Git - bike-lights.git/commitdiff
adc.c: configurable number of pre-readings
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 17 Mar 2013 16:59:23 +0000 (17:59 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sun, 17 Mar 2013 16:59:23 +0000 (17:59 +0100)
When there is a supposed ADC noise problem, it is handful to drop
several first readings, and even discharge the ADC capacitor
by reading the single-ended wire connected to zero. This commit
rewrites the ADC handling to allow exactly this, for each ADC input.


No differences found