12C LCD DTH 22

Dependencies:   mbed

Revision:
0:6ebd772b99bd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Apr 28 06:29:16 2015 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalIn sw1(D10);
+int main() {
+    while(1){
+        if(sw1==1){
+            myled=1;
+        }else{
+            myled=0;
+        }
+}
+}
\ No newline at end of file