Skip to content

Commit b2568fb

Browse files
committed
added comments
1 parent 039bfd4 commit b2568fb

File tree

8 files changed

+10
-2
lines changed

8 files changed

+10
-2
lines changed

examples/Example1_BasicReadings/Example1_BasicReadings.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void setup() {
2727
while (1);
2828
}
2929
//Initializes sensor for air quality readings
30+
//measureAirQuality should be called in one second increments after a call to initAirQuality
3031
mySensor.initAirQuality();
3132
}
3233

examples/Example2_RawSignals/Example2_RawSignals.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void setup() {
3030
while (1);
3131
}
3232
//Initializes sensor for air quality readings
33+
//measureAirQuality should be called in one second increments after a call to initAirQuality
3334
mySensor.initAirQuality();
3435
t1 = millis();
3536
}

examples/Example3_Humidity/Example3_Humidity.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ void setup() {
4545
//Convert the double type humidity to a fixed point 8.8bit number
4646
uint16_t sensHumidity = doubleToFixedPoint(absHumidity);
4747
//Initializes sensor for air quality readings
48+
//measureAirQuality should be called in one second increments after a call to initAirQuality
4849
mySensor.initAirQuality();
4950
//Set the humidity compensation on the SGP30 to the measured value
5051
//If no humidity sensor attached, sensHumidity should be 0 and sensor will use default

examples/Example4_ErrorChecking/Example4_ErrorChecking.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ void setup() {
3131
while (1);
3232
}
3333
//Initializes sensor for air quality readings
34+
//measureAirQuality should be called in one second increments after a call to initAirQuality
3435
mySensor.initAirQuality();
35-
t1 = millis();
36+
t1 = millis();
3637
}
3738

3839
void loop() {

examples/Example6_SchedulerReadings/Example6_SchedulerReadings.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void setup() {
3838
runner.init();
3939
//add task t1 to the schedule
4040
runner.addTask(t1);
41+
//measureAirQuality should be called in one second increments after a call to initAirQuality
4142
mySensor.initAirQuality();
4243
//enable t1 to run
4344
t1.enable();

examples/Example7_Reset/Example7_Reset.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void setup() {
3030
Serial.println("No SGP30 Detected. Check connections.");
3131
while (1);
3232
}
33+
//measureAirQuality should be called in one second increments after a call to initAirQuality
3334
mySensor.initAirQuality();
3435
//First fifteen readings will be
3536
//CO2: 400 ppm TVOC: 0 ppb

examples/Example8_OtherI2C/Example8_OtherI2C.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void setup() {
2727
while (1);
2828
}
2929
//Initializes sensor for air quality readings
30+
//measureAirQuality should be called in one second increments after a call to initAirQuality
3031
mySensor.initAirQuality();
3132
t1 = millis();
3233
}

library.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ version=1.0.0
33
author=SparkFun Electronics
44
maintainer=SparkFun Electronics
55
sentence=Library for the Sensirion SGP30 air quality sensor
6-
paragraph=
6+
paragraph=The SGP30 is an indoor air quality sensor equipped with an I<sup>2</sup>C interface. It outputs equivalent CO<sub>2</sub> in ppm and Total Volatile Organic Compounds (TVOC) in ppb. The sensor also gives access to its raw measurement values of Ethanol and H<sub>2</sub>.
7+
78
category=Sensors
89
url=https://github.com/sparkfun/SparkFun_SGP30_Library
910
architectures=*

0 commit comments

Comments
 (0)