From 315d4f225aa48f221a704a55e12a49172daee03e Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 30 May 2021 02:03:32 +0200 Subject: [PATCH] Added analog button hue control --- wled00/button.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wled00/button.cpp b/wled00/button.cpp index 28cecde4c..7d4839c6c 100644 --- a/wled00/button.cpp +++ b/wled00/button.cpp @@ -118,6 +118,9 @@ void handleAnalog(uint8_t b) if (!seg.isSelected()) continue; seg.palette = effectPalette; } + } else if (macroDoublePress[b] == 200) { + // primary color, hue, full saturation + colorHStoRGB(aRead*256,255,col); } else { // otherwise use "double press" for segment selection //uint8_t mainSeg = strip.getMainSegmentId();