Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
447f9bf1
Commit
447f9bf1
authored
Oct 23, 2021
by
Eric Duminil
Browse files
...
parent
5b36dc4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
447f9bf1
...
...
@@ -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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment