forked from airgradienthq/arduino
v1.0.2
-Changed getCO2 to return a char and if sensor is non existent will return NULL -Changed getPM2 to return a char and if sensor is non existent will return NULL -Added a new function getPM2_Raw which will return the value of PM2 as an integer -Added a new function getCO2_Raw which will return the value of CO2 as an integer -Added 2 new variables in the TMP_Raw Struct: 1. t_Char 2. rh_Char These variables will be used to store the corresponding values as char and if sensor is nonexistent should be NULL
This commit is contained in:
1 parent
3775be0034
commit
e6d886c00e
9 files changed
+127
-90
No files matched your search
@@ -8,9 +8,9 @@ void setup(){
|
||||
|
||||
void loop(){
|
||||
|
||||
int PM2 = ag.getPM2();
|
||||
int PM2 = ag.getPM2_Raw();
|
||||
Serial.print("PM2: ");
|
||||
Serial.println(PM2);
|
||||
Serial.println(ag.getPM2());
|
||||
|
||||
delay(5000);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user