From 477a963631781468ce114a9ebdfc100d8bc93031 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Sun, 11 Jan 2026 20:28:06 +0100 Subject: Colors - More subtle - Reduce: Saturation, brightness - Remove hourly animation --- src/main.cpp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 5aecda2..bc30657 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,7 +13,7 @@ Timezone CopenhagenTime; // Used for hue shift each minute // https://github.com/FastLED/FastLED/wiki/FastLED-HSV-Colors int hue = 0; -int max_brightness = 255; +int max_brightness = 150; // Hold state if an led is on, to check if it should be faded on / off, or if it already is in desired state bool on_state[SEGMENT_COUNT * DIGIT_COUNT] = {false}; @@ -157,8 +157,8 @@ void play_animation(uint8_t *animation, int animation_size, int segment_delay) { for (int digit_index = 0; digit_index < 4; digit_index++) { display_symbol(digit_index, animation[i]); } - - hue += 16; // Increment HSV hue a lot for rainbow vomit + + hue += 8; // Increment HSV hue a lot for rainbow vomit FastLED.show(); delay(segment_delay); } @@ -212,7 +212,7 @@ void setup() { delay(100); - hue = 0; + hue = 145; // Turn off all LEDs FastLED.clear(); @@ -252,22 +252,10 @@ void loop() { int seconds = CopenhagenTime.dateTime("s").toInt(); int minutes = CopenhagenTime.dateTime("i").toInt(); - // Play animation 5 seconds before hour change - if(minutes == 59 && seconds >= 55) { - play_animation(dual_spin_animation, sizeof(spin_animation), 50); - FastLED.clear(); - } - // Do nothing untill minute change - if(seconds != 0) { - delay(10); - return; - } - // Minute changed update_clock(); - // Wait untill minute change check won't be triggered again - delay(1000); + hue++; } -- cgit v1.2.3