GPIO program for K64F boards

Dependencies:   mbed DigitDisplay LED_Bar

Revision:
0:880457ab5a77
Child:
1:04022340010b
Child:
2:a1e7d7fa0db2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 18 19:24:12 2019 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+ 
+DigitalIn enable(PTE24);
+Serial      pc(USBTX, USBRX);
+ 
+int main() {
+    pc.baud(115200);
+    while(1) {
+        pc.printf("its inside while loop now\n");
+        if(!enable) {
+            pc.printf("led is on\n");
+        }
+        else
+        {
+            pc.printf("false\n");
+        }
+        wait(0.25);
+    }
+}
\ No newline at end of file