Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DustSenzor by
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
