marko puric / DustSenzor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

Committer:
mpuric
Date:
Fri May 05 13:44:42 2017 +0000
Revision:
3:e382316d6d00
Parent:
2:4c3bdadb6bc4
Child:
5:fd42a3f8c7eb
Dust senzor PMS5003

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 2:4c3bdadb6bc4 4 #include"TextLCD.h"
mpuric 2:4c3bdadb6bc4 5
mpuric 0:513b42c738f3 6
mpuric 0:513b42c738f3 7 class DustSenzor{
mpuric 0:513b42c738f3 8 public:
mpuric 1:c0ccd10b5a2b 9 DustSenzor();
mpuric 0:513b42c738f3 10
mpuric 0:513b42c738f3 11 private:
mpuric 0:513b42c738f3 12 Serial uart;
mpuric 2:4c3bdadb6bc4 13 I2C i2c_lcd;
mpuric 2:4c3bdadb6bc4 14 Serial pc;
mpuric 0:513b42c738f3 15 DigitalOut set;
mpuric 0:513b42c738f3 16 InterruptIn tipka;
mpuric 0:513b42c738f3 17 Timer debounce;
mpuric 2:4c3bdadb6bc4 18 unsigned char buff[32];
mpuric 2:4c3bdadb6bc4 19 bool provjera;
mpuric 0:513b42c738f3 20 int br;
mpuric 2:4c3bdadb6bc4 21 short PM1;
mpuric 2:4c3bdadb6bc4 22 short PM25;
mpuric 2:4c3bdadb6bc4 23 short PM10;
mpuric 0:513b42c738f3 24 float pm1;
mpuric 2:4c3bdadb6bc4 25 float pm25;
mpuric 0:513b42c738f3 26 float pm10;
mpuric 0:513b42c738f3 27 void mbedTOSenzor();
mpuric 2:4c3bdadb6bc4 28 void Ispis();
mpuric 0:513b42c738f3 29 void Racunanje();
mpuric 2:4c3bdadb6bc4 30 void modeSet();
mpuric 3:e382316d6d00 31
mpuric 2:4c3bdadb6bc4 32 void Koeficijenti( unsigned char *, short *, short *, short *, float *, float *, float *);
mpuric 0:513b42c738f3 33
mpuric 0:513b42c738f3 34 };
mpuric 0:513b42c738f3 35 #endif
mpuric 0:513b42c738f3 36
mpuric 0:513b42c738f3 37