marko puric / DustSenzor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

DustSenzor.h

Committer:
mpuric
Date:
2017-03-17
Revision:
0:513b42c738f3
Child:
1:c0ccd10b5a2b

File content as of revision 0:513b42c738f3:

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

class DustSenzor{
    public:
        DustSenzor(PinName txPin, PinName rxPin);
        
    private:
        Serial uart;
        DigitalOut set;
        InterruptIn tipka;
        bool provjera;
        Timer debounce;
        unsigned char buff[32] ;
        int br;
        int PM1 ;
        int PM2_5 ;
        int PM10;
        float pm1;
        float pm2_5;
        float pm10;
        int posalji_PM1(unsigned char );
        int posalji_PM2_5(unsigned char );
        int posalji_PM10(unsigned char );
        float posalji_pm1(unsigned char );
        float posalji_pm2_5(unsigned char );
        float posalji_pm10(unsigned char );
        void mbedTOSenzor();
        void ispis();
        void Racunanje();
    
};
#endif