Commit 447f9bf1 authored by Eric Duminil's avatar Eric Duminil
Browse files

...

parent 5b36dc4e
......@@ -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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment