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