CIS441 Controller

Dependencies:   TextLCD mbed-rtos mbed

Fork of PacemakerController by Chad Nachiappan

Revision:
12:ed162e1f7194
Parent:
9:fd8477284185
Child:
13:2a25dd47478e
--- a/PacemakerController.cpp	Mon Nov 30 20:24:59 2015 +0000
+++ b/PacemakerController.cpp	Mon Nov 30 20:48:50 2015 +0000
@@ -43,6 +43,8 @@
 DigitalOut Vpace(LED2);
 DigitalOut Asense(LED3);
 DigitalOut Vsense(LED4);
+DigitalOut apace(p22):
+DigitalOut vpace(p21):
 
 // hardware interrupt handler, adapted from code in piazza post by Dagaen
 extern "C" void TIMER0_IRQHandler (void)
@@ -190,11 +192,16 @@
 
 
 void apace() {
-    // make pin 1
+    apace = 1;
+    Thread::wait(10);
+    apace = 0;
+    
 }
 
 void vpace() {
-    // make pin 1
+    vpace = 1;
+    Thread::wait(10);
+    vpace = 0;
 }