test

Dependencies:   mbed

Revision:
0:035867391bd5
Child:
1:e9c99931de4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 16 04:47:40 2014 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+DigitalIn   sw(P0_1, PullUp);
+DigitalOut  led(P1_28);
+
+int main(){
+    while(1){
+        while(sw == 0){
+            led = 1;
+        }
+        led = 0;
+    }
+}