red-blue buttons

Dependencies:   mbed

Revision:
0:f0c7a0214862
Child:
1:f5e63bb24359
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Sep 12 09:59:34 2016 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+
+DigitalIn enable(PTA4);
+DigitalIn enables(PTC6);
+
+DigitalOut red(LED_RED);
+//DigitalOut green(LED_GREEN);
+DigitalOut blue(LED_BLUE);
+
+int main()
+{  
+   while(true){
+    blue=0;
+    if(enable==0)
+    {
+        red=0;
+    }
+    else
+    {
+        red=1;
+    }
+    }
+}
\ No newline at end of file