mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-24 05:57:17 +02:00
v1.0.1
-Fixed getCO2 function
This commit is contained in:
16
examples/C02_Test/C02_Test.ino
Normal file
16
examples/C02_Test/C02_Test.ino
Normal file
@ -0,0 +1,16 @@
|
||||
#include <AirGradient.h>
|
||||
AirGradient ag = AirGradient();
|
||||
|
||||
void setup(){
|
||||
Serial.begin(9600);
|
||||
ag.C02_Init();
|
||||
}
|
||||
|
||||
void loop(){
|
||||
|
||||
int CO2 = ag.getC02();
|
||||
Serial.print("C02: ");
|
||||
Serial.println(CO2);
|
||||
|
||||
delay(5000);
|
||||
}
|
Reference in New Issue
Block a user