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.
Dependencies: SealDetection mbed
sealDetect.h
- Committer:
- dehrlich
- Date:
- 2016-12-02
- Revision:
- 0:5c1b87a3b421
File content as of revision 0:5c1b87a3b421:
#include "mbed.h"
#include "NeoStrip.h"
class sealDetect {
public:
sealDetect(PinName a, PinName b, PinName c);
void checkSeal();
void startReading();
void stopReading();
void reset();
bool sealDetected();
private:
I2C seal_detect;
Ticker sealReader;
volatile bool sealed;
volatile float chan0;
volatile float chan2;
volatile float chan4;
volatile float chan6;
float thresh;
NeoStrip strip;
};