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
Diff: sealDetect.h
- Revision:
- 0:5c1b87a3b421
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sealDetect.h Fri Dec 02 04:50:27 2016 +0000
@@ -0,0 +1,22 @@
+#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;
+};
\ No newline at end of file