From a5dcb3929539612d4ef3966838f9f13b7794975d Mon Sep 17 00:00:00 2001 From: Fisch Date: Tue, 23 May 2023 22:17:25 +0200 Subject: [PATCH] invert voltage led ring and fix long start button press not working --- controller_teensy/include/led.h | 4 ++-- controller_teensy/src/main.cpp | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/controller_teensy/include/led.h b/controller_teensy/include/led.h index 9f80c39..a0ce437 100644 --- a/controller_teensy/include/led.h +++ b/controller_teensy/include/led.h @@ -102,8 +102,8 @@ void led_voltage(unsigned long loopmillis,float vbat,float vbat_min,float vbat_m uint32_t colorEmpty=strip.Color(255, 0, 0, 0); uint8_t position=map( max(min(vbat,vbat_max),vbat_min) ,vbat_min,vbat_max, 0,strip.numPixels()); for(int i=0; i