kh

Dependencies:   Adafruit_SGP30_mbed mbed CCS811 mbed-rtos ALPHASENSE Adafruit_ADS1015_ BME680

Committer:
etiene32
Date:
Wed Mar 06 14:03:41 2019 +0000
Revision:
0:43070b2dfc87
,hb

Who changed what in which revision?

UserRevisionLine numberNew contents of line
etiene32 0:43070b2dfc87 1 #pragma once
etiene32 0:43070b2dfc87 2
etiene32 0:43070b2dfc87 3 #include "mbed.h"
etiene32 0:43070b2dfc87 4
etiene32 0:43070b2dfc87 5 class PMS7003
etiene32 0:43070b2dfc87 6 {
etiene32 0:43070b2dfc87 7
etiene32 0:43070b2dfc87 8 public:
etiene32 0:43070b2dfc87 9 PMS7003(Serial* serial);
etiene32 0:43070b2dfc87 10 void read();
etiene32 0:43070b2dfc87 11 float getPM10();
etiene32 0:43070b2dfc87 12 float getPM2_5();
etiene32 0:43070b2dfc87 13 float getPM1();
etiene32 0:43070b2dfc87 14 private:
etiene32 0:43070b2dfc87 15 Serial* serial;
etiene32 0:43070b2dfc87 16 float pm10_count;
etiene32 0:43070b2dfc87 17 float pm2_5_count;
etiene32 0:43070b2dfc87 18 float pm1_count;
etiene32 0:43070b2dfc87 19
etiene32 0:43070b2dfc87 20 static const uint8_t PACKET_SIZE = 32;
etiene32 0:43070b2dfc87 21 uint8_t buffer[PACKET_SIZE];
etiene32 0:43070b2dfc87 22
etiene32 0:43070b2dfc87 23 };