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
27678385
Commit
27678385
authored
Oct 22, 2021
by
Eric Duminil
Browse files
Comments
parent
daf08852
Pipeline
#5160
failed with stage
in 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
27678385
...
...
@@ -32,6 +32,7 @@ SCD30 sensor;
int
which_led
;
uint16_t
co2
;
// The code in setup() will be run once, at startup.
void
setup
()
{
// Transmission speed
Serial
.
begin
(
115200
);
...
...
@@ -48,6 +49,7 @@ void setup() {
sensor
.
setMeasurementInterval
(
10
);
}
// The code in loop() will be run as long as the micro-controller is powered up, in an infinite loop.
void
loop
()
{
if
(
sensor
.
dataAvailable
())
{
// New measurement is available. Let's display it!
...
...
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