aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruser@node5.net <user@node5.net>2026-01-11 20:28:06 +0100
committeruser@node5.net <user@node5.net>2026-01-11 20:30:17 +0100
commit477a963631781468ce114a9ebdfc100d8bc93031 (patch)
tree22fd8d7fdd77cea6628b5c7effdcb61b0b5d7515 /src
parentbf1ba0980d4bbef0e1b90d00e5e57b0bc159ca89 (diff)
Colors - More subtle
- Reduce: Saturation, brightness - Remove hourly animation
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp22
1 files changed, 5 insertions, 17 deletions
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++;
}