marko puric / DustSenzor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

Committer:
mpuric
Date:
Fri May 05 10:37:43 2017 +0000
Revision:
2:4c3bdadb6bc4
Parent:
1:c0ccd10b5a2b
Child:
3:e382316d6d00
Zavrsni rad

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 2:4c3bdadb6bc4 16 DigitalOut reset;
mpuric 0:513b42c738f3 17 InterruptIn tipka;
mpuric 2:4c3bdadb6bc4 18 InterruptIn tipkaReset;
mpuric 0:513b42c738f3 19 Timer debounce;
mpuric 2:4c3bdadb6bc4 20 unsigned char buff[32];
mpuric 2:4c3bdadb6bc4 21 bool provjera;
mpuric 0:513b42c738f3 22 int br;
mpuric 2:4c3bdadb6bc4 23 short PM1;
mpuric 2:4c3bdadb6bc4 24 short PM25;
mpuric 2:4c3bdadb6bc4 25 short PM10;
mpuric 0:513b42c738f3 26 float pm1;
mpuric 2:4c3bdadb6bc4 27 float pm25;
mpuric 0:513b42c738f3 28 float pm10;
mpuric 0:513b42c738f3 29 void mbedTOSenzor();
mpuric 2:4c3bdadb6bc4 30 void Ispis();
mpuric 0:513b42c738f3 31 void Racunanje();
mpuric 2:4c3bdadb6bc4 32 void modeSet();
mpuric 2:4c3bdadb6bc4 33 void Pocetna();
mpuric 2:4c3bdadb6bc4 34 void senzorReset();
mpuric 2:4c3bdadb6bc4 35 void Koeficijenti( unsigned char *, short *, short *, short *, float *, float *, float *);
mpuric 0:513b42c738f3 36
mpuric 0:513b42c738f3 37 };
mpuric 0:513b42c738f3 38 #endif
mpuric 0:513b42c738f3 39
mpuric 0:513b42c738f3 40