Breath

Dependencies:   NeoStrip mbed

Fork of Breath by Ryan Williams

Revision:
1:86d9b36d9132
Parent:
0:397523d4133e
--- a/windSensor.h	Thu Dec 01 00:42:08 2016 +0000
+++ b/windSensor.h	Thu Dec 01 03:04:38 2016 +0000
@@ -1,22 +1,25 @@
 #include "mbed.h"
+#include "MPL3115.h"
 #include "NeoStrip.h"
 #include <vector>
 
 class windSensor {
 public:
-    windSensor(PinName p, NeoStrip *_strip);
+    windSensor(PinName p, NeoStrip *_strip, PinName p2, PinName p3, int addr);
     /* Start victim breath */
     void sample();
     void startReading();
     void stopReading();
     void reset();
     bool breathDetected();
-    /* End vicim breath */
+    bool pressureSpike();
+    /* End victim breath */
     
     /* start give breath */
     float give_breath(void);
     /* end give breath */
     
+    
 private:
     /* start vicim breath */
     AnalogIn sensor;
@@ -34,4 +37,7 @@
     /* end give breath */
     vector<float> c;
     NeoStrip *strip;
+    MPL3115 barometer; 
+          
+    bool spike;
 };
\ No newline at end of file