marko puric / DustSenzor

Dependents:   PMS5003

Fork of DustSenzor by marko puric

DustSenzor.h

Committer:
mpuric
Date:
2017-05-05
Revision:
3:e382316d6d00
Parent:
2:4c3bdadb6bc4
Child:
5:fd42a3f8c7eb

File content as of revision 3:e382316d6d00:

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


class DustSenzor{
    public:
        DustSenzor();
        
    private:
        Serial uart;
        I2C i2c_lcd;
        Serial pc;
        DigitalOut set;
        InterruptIn tipka;
        Timer debounce;
        unsigned char buff[32];
        bool provjera;
        int br;
        short PM1;
        short PM25;
        short PM10;
        float pm1;
        float pm25;
        float pm10;
        void mbedTOSenzor();
        void Ispis();
        void Racunanje();
        void modeSet();

        void Koeficijenti( unsigned char *, short *, short *, short *, float *, float *, float *);
    
};
#endif