Dust sensor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

DustSenzor.h

Committer:
mpuric
Date:
2017-06-05
Revision:
5:fd42a3f8c7eb
Parent:
3:e382316d6d00
Child:
6:f6a93c155525

File content as of revision 5:fd42a3f8c7eb:

#ifndef DUSTSENZOR_H
#define DUSTSENZOR_H
#include"mbed.h"
#include"TextLCD.h"


class DustSenzor{
    public:
        DustSenzor(PinName set, PinName uartTx, PinName uartRx);
        void start();
        void stop();
        float* read();
        void reset();
        
        
        
    private:
        float value[9];
        Serial uart;
        DigitalOut set;
        Timer debounce;
        unsigned char buff[32];
        bool provjera;
        int br;
        void serialSensor();
        void Racunanje();
        void modeSet();
        void save( unsigned char *);
       
};
#endif