Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarajekel committed Jul 6, 2018
1 parent 039bfd4 commit b2568fb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/Example1_BasicReadings/Example1_BasicReadings.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void setup() {
while (1);
}
//Initializes sensor for air quality readings
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
}

Expand Down
1 change: 1 addition & 0 deletions examples/Example2_RawSignals/Example2_RawSignals.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void setup() {
while (1);
}
//Initializes sensor for air quality readings
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
t1 = millis();
}
Expand Down
1 change: 1 addition & 0 deletions examples/Example3_Humidity/Example3_Humidity.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void setup() {
//Convert the double type humidity to a fixed point 8.8bit number
uint16_t sensHumidity = doubleToFixedPoint(absHumidity);
//Initializes sensor for air quality readings
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
//Set the humidity compensation on the SGP30 to the measured value
//If no humidity sensor attached, sensHumidity should be 0 and sensor will use default
Expand Down
3 changes: 2 additions & 1 deletion examples/Example4_ErrorChecking/Example4_ErrorChecking.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ void setup() {
while (1);
}
//Initializes sensor for air quality readings
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
t1 = millis();
t1 = millis();
}

void loop() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void setup() {
runner.init();
//add task t1 to the schedule
runner.addTask(t1);
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
//enable t1 to run
t1.enable();
Expand Down
1 change: 1 addition & 0 deletions examples/Example7_Reset/Example7_Reset.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void setup() {
Serial.println("No SGP30 Detected. Check connections.");
while (1);
}
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
//First fifteen readings will be
//CO2: 400 ppm TVOC: 0 ppb
Expand Down
1 change: 1 addition & 0 deletions examples/Example8_OtherI2C/Example8_OtherI2C.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void setup() {
while (1);
}
//Initializes sensor for air quality readings
//measureAirQuality should be called in one second increments after a call to initAirQuality
mySensor.initAirQuality();
t1 = millis();
}
Expand Down
3 changes: 2 additions & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ version=1.0.0
author=SparkFun Electronics
maintainer=SparkFun Electronics
sentence=Library for the Sensirion SGP30 air quality sensor
paragraph=
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>.

category=Sensors
url=https://github.com/sparkfun/SparkFun_SGP30_Library
architectures=*

0 comments on commit b2568fb

Please sign in to comment.