Commit 27678385 authored by Eric Duminil's avatar Eric Duminil
Browse files

Comments

parent daf08852
...@@ -32,6 +32,7 @@ SCD30 sensor; ...@@ -32,6 +32,7 @@ SCD30 sensor;
int which_led; int which_led;
uint16_t co2; uint16_t co2;
// The code in setup() will be run once, at startup.
void setup() { void setup() {
// Transmission speed // Transmission speed
Serial.begin(115200); Serial.begin(115200);
...@@ -48,6 +49,7 @@ void setup() { ...@@ -48,6 +49,7 @@ void setup() {
sensor.setMeasurementInterval(10); 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() { void loop() {
if (sensor.dataAvailable()) { if (sensor.dataAvailable()) {
// New measurement is available. Let's display it! // New measurement is available. Let's display it!
......
Supports Markdown
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