new pms1003 lib is not complish
pms1003.h
- Committer:
- feilang
- Date:
- 2017-08-25
- Revision:
- 1:0a5b0d859173
- Parent:
- 0:c8383cf2dd21
- Child:
- 2:b78c3e2583fa
File content as of revision 1:0a5b0d859173:
#ifndef _PMS_103_H #define _PMS_1003_H #include "mbed.h" #include "max32630fthr.h" #define Sense_PM 6 #define CHAR_PRELIM 0x42 #define NUM_DATA_BYTE 29 #define CHECK_BYTE 30 #define PM25_BYTE 12 class PMS1003 { public: //void processData(int *PM1, int *PM25, int *PM10); void pmProcess(Serial &serial); int getPM1(); int getPM25(); int getPM10(); private: int pm1; int pm25; int pm10; }; #endif