From: Jan "Yenya" Kasprzak Date: Sun, 17 Mar 2013 16:59:23 +0000 (+0100) Subject: adc.c: configurable number of pre-readings X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=4c6ff89995f620aadb6cd8ef9403adac8ef48478;hp=4c6ff89995f620aadb6cd8ef9403adac8ef48478;p=bike-lights.git adc.c: configurable number of pre-readings 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. ---