Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
fc87b9eb
Commit
fc87b9eb
authored
3 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
More doc
parent
d9dd6a30
archive/experimental/simple
archive/experimental/binary_clock
No related merge requests found
Pipeline
#5896
failed with stage
in 20 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ampel-firmware/ampel-firmware.ino
+2
-0
ampel-firmware/ampel-firmware.ino
with
2 additions
and
0 deletions
+2
-0
ampel-firmware/ampel-firmware.ino
+
2
-
0
View file @
fc87b9eb
...
...
@@ -71,9 +71,11 @@ void loop() {
// Check if air is good enough
if
(
co2
<=
1000
)
{
// Light the LED green if CO2 ppm is low
// position, red, green, blue
led_ring
.
setPixelColor
(
which_led
,
0
,
255
,
0
);
}
else
{
// Red otherwise.
// position, red, green, blue
led_ring
.
setPixelColor
(
which_led
,
255
,
0
,
0
);
}
led_ring
.
show
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets