marko puric / DustSenzor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

Committer:
mpuric
Date:
Wed Apr 12 07:00:13 2017 +0000
Revision:
1:c0ccd10b5a2b
Parent:
0:513b42c738f3
Child:
2:4c3bdadb6bc4
5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mpuric 0:513b42c738f3 1 #ifndef DUSTSENZOR_H
mpuric 0:513b42c738f3 2 #define DUSTSENZOR_H
mpuric 0:513b42c738f3 3 #include"mbed.h"
mpuric 0:513b42c738f3 4
mpuric 0:513b42c738f3 5 class DustSenzor{
mpuric 0:513b42c738f3 6 public:
mpuric 1:c0ccd10b5a2b 7 DustSenzor();
mpuric 0:513b42c738f3 8
mpuric 0:513b42c738f3 9 private:
mpuric 0:513b42c738f3 10 Serial uart;
mpuric 0:513b42c738f3 11 DigitalOut set;
mpuric 0:513b42c738f3 12 InterruptIn tipka;
mpuric 0:513b42c738f3 13 bool provjera;
mpuric 0:513b42c738f3 14 Timer debounce;
mpuric 0:513b42c738f3 15 unsigned char buff[32] ;
mpuric 0:513b42c738f3 16 int br;
mpuric 0:513b42c738f3 17 int PM1 ;
mpuric 0:513b42c738f3 18 int PM2_5 ;
mpuric 0:513b42c738f3 19 int PM10;
mpuric 0:513b42c738f3 20 float pm1;
mpuric 0:513b42c738f3 21 float pm2_5;
mpuric 0:513b42c738f3 22 float pm10;
mpuric 1:c0ccd10b5a2b 23 int posalji_PM1();
mpuric 0:513b42c738f3 24 int posalji_PM2_5(unsigned char );
mpuric 0:513b42c738f3 25 int posalji_PM10(unsigned char );
mpuric 0:513b42c738f3 26 float posalji_pm1(unsigned char );
mpuric 0:513b42c738f3 27 float posalji_pm2_5(unsigned char );
mpuric 0:513b42c738f3 28 float posalji_pm10(unsigned char );
mpuric 0:513b42c738f3 29 void mbedTOSenzor();
mpuric 0:513b42c738f3 30 void ispis();
mpuric 0:513b42c738f3 31 void Racunanje();
mpuric 0:513b42c738f3 32
mpuric 0:513b42c738f3 33 };
mpuric 0:513b42c738f3 34 #endif
mpuric 0:513b42c738f3 35
mpuric 0:513b42c738f3 36