From b2f95757bde9f3e23105d7b433fc59ace0f2ae87 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 10 Feb 2023 02:12:27 -0700 Subject: fast-blink the aux LED in standby when battery is low 3.3V and up: normal aux LED modes 2.9V to 3.3V: fast blink under 2.9V: off (only on lights with no RGB aux) --- spaghetti-monster/fsm-adc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spaghetti-monster/fsm-adc.h') diff --git a/spaghetti-monster/fsm-adc.h b/spaghetti-monster/fsm-adc.h index fc24712..db2bb7b 100644 --- a/spaghetti-monster/fsm-adc.h +++ b/spaghetti-monster/fsm-adc.h @@ -36,6 +36,10 @@ volatile uint8_t adc_reset = 2; #ifndef VOLTAGE_LOW #define VOLTAGE_LOW 29 #endif +// battery is low but not critical +#ifndef VOLTAGE_RED +#define VOLTAGE_RED 33 +#endif // MCU sees voltage 0.X volts lower than actual, add X/2 to readings #ifndef VOLTAGE_FUDGE_FACTOR #ifdef USE_VOLTAGE_DIVIDER -- cgit v1.2.3