Commit a0dcabd0 authored by Sven Greiner's avatar Sven Greiner

New ADC mapping

N=1 is not good for calibration. Previous values were off by about 0.5 V
with another flashlight.
parent 1dd7f1f1
......@@ -34,11 +34,11 @@
#define FLICKER_TIME 2
#define FLASH_PWM 5
#define BAT_LOW 134 // ~3.2 V
#define BAT_CRIT 111 // ~2.7 V
#define BAT_75P 171 // ~4.0 V
#define BAT_50P 161 // ~3.8 V
#define BAT_25P 147 // ~3.5 V
#define BAT_LOW 139 // ~3.2 V
#define BAT_CRIT 119 // ~2.7 V
#define BAT_75P 174 // ~4.0 V
#define BAT_50P 165 // ~3.8 V
#define BAT_25P 152 // ~3.5 V
#define RAMP_TIME 3
#define RAMP_SIZE sizeof(ramp_values)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment