marko puric / DustSenzor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

Committer:
mpuric
Date:
Mon Jun 05 08:12:24 2017 +0000
Revision:
5:fd42a3f8c7eb
Parent:
3:e382316d6d00
Child:
6:f6a93c155525
Init commit

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 5:fd42a3f8c7eb 9 DustSenzor(PinName set, PinName uartTx, PinName uartRx);
mpuric 5:fd42a3f8c7eb 10 void start();
mpuric 5:fd42a3f8c7eb 11 void stop();
mpuric 5:fd42a3f8c7eb 12 float* read();
mpuric 5:fd42a3f8c7eb 13 void reset();
mpuric 5:fd42a3f8c7eb 14
mpuric 5:fd42a3f8c7eb 15
mpuric 0:513b42c738f3 16
mpuric 0:513b42c738f3 17 private:
mpuric 5:fd42a3f8c7eb 18 float value[9];
mpuric 0:513b42c738f3 19 Serial uart;
mpuric 0:513b42c738f3 20 DigitalOut set;
mpuric 0:513b42c738f3 21 Timer debounce;
mpuric 2:4c3bdadb6bc4 22 unsigned char buff[32];
mpuric 2:4c3bdadb6bc4 23 bool provjera;
mpuric 0:513b42c738f3 24 int br;
mpuric 5:fd42a3f8c7eb 25 void serialSensor();
mpuric 0:513b42c738f3 26 void Racunanje();
mpuric 2:4c3bdadb6bc4 27 void modeSet();
mpuric 5:fd42a3f8c7eb 28 void save( unsigned char *);
mpuric 5:fd42a3f8c7eb 29
mpuric 0:513b42c738f3 30 };
mpuric 0:513b42c738f3 31 #endif
mpuric 0:513b42c738f3 32
mpuric 0:513b42c738f3 33