breath sensor library

Revision:
1:d07f80ef7abc
Parent:
0:397523d4133e
--- a/windSensor.h	Thu Dec 01 00:42:08 2016 +0000
+++ b/windSensor.h	Sun Dec 11 21:12:18 2016 +0000
@@ -1,10 +1,11 @@
 #include "mbed.h"
 #include "NeoStrip.h"
+#include "MPL3115.h"
 #include <vector>
 
 class windSensor {
 public:
-    windSensor(PinName p, NeoStrip *_strip);
+    windSensor(PinName p, NeoStrip *_strip, PinName p2, PinName p3);
     /* Start victim breath */
     void sample();
     void startReading();
@@ -15,6 +16,7 @@
     
     /* start give breath */
     float give_breath(void);
+    bool pressureSpikeDetected();
     /* end give breath */
     
 private:
@@ -34,4 +36,7 @@
     /* end give breath */
     vector<float> c;
     NeoStrip *strip;
+    MPL3115 barometer;
+    bool spike;
+    float pressure_threshold;
 };
\ No newline at end of file