mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 08:27:17 +02:00
Removed unused files, changed example names
This commit is contained in:
16
examples/PM2_SIMPLE/PM2_SIMPLE.ino
Normal file
16
examples/PM2_SIMPLE/PM2_SIMPLE.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_Raw();
|
||||
Serial.print("PM2: ");
|
||||
Serial.println(ag.getPM2());
|
||||
|
||||
delay(5000);
|
||||
}
|
Reference in New Issue
Block a user