Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   mbed Queue mbed-rtos FXOS8700Q

Fork of Pacemaker by Eric dollar

SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.

The project uses the Freescale K64F Microcontroller and C++ mbed library.

Revision:
34:701503855d52
Parent:
32:69cd1390bc21
Child:
35:fa164704f0ca
--- a/interface.cpp	Mon Dec 12 03:31:55 2016 +0000
+++ b/interface.cpp	Tue Dec 13 03:46:34 2016 +0000
@@ -96,6 +96,10 @@
                     case 0xA:{
                         value = getInput();
                         atrData->chngSensitivity(atof(value)/100);
+                        double pw = atrData->getSensitivity();
+                        if(pw < 0.5){
+                            rled = !rled;
+                        }
                         break;
                     }
                     case 0xB:{
@@ -140,7 +144,7 @@
                             }
                             double myInt = (myDataStruct->getData());
                             pc->printf("%f\n", myInt);
-                            rled = !rled; 
+                            //rled = !rled; 
                             Thread::wait(4);
                         }
                         break;