From 447f9bf1b3676cbbf17a851745da2c9c74eb6303 Mon Sep 17 00:00:00 2001
From: Eric Duminil <eric.duminil@gmail.com>
Date: Sat, 23 Oct 2021 11:49:59 +0200
Subject: [PATCH] ...

---
 ampel-firmware/ampel-firmware.ino | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ampel-firmware/ampel-firmware.ino b/ampel-firmware/ampel-firmware.ino
index 63243b4..8fc019d 100644
--- a/ampel-firmware/ampel-firmware.ino
+++ b/ampel-firmware/ampel-firmware.ino
@@ -45,8 +45,8 @@ void loop() {
   // Check if air is good enough
   for (int i = 0; i < LED_COUNT; ++i) {
     if ((n >> i) & 1) {
-      led_ring.setPixelColor(i, 0, 255, 0);
-//      led_ring.setPixelColor(i, led_ring.ColorHSV(i * 65535 / 16));
+//      led_ring.setPixelColor(i, 0, 255, 0);
+      led_ring.setPixelColor(i, led_ring.ColorHSV(n * 1023 + 60000));
     }
   }
   Serial.print(n);
@@ -55,7 +55,7 @@ void loop() {
   led_ring.show();
   n = n + 1;
 
-  // Wait half a second before next loop.
-  // Micro-controller might crash if it has too much work to do. Please don't remove it!
+// Wait half a second before next loop.
+// Micro-controller might crash if it has too much work to do. Please don't remove it!
   delay(1000);
 }
-- 
GitLab