testing forking

Dependencies:   mbed

Fork of ConsolTest by Pipeline Technology Centre

Revision:
3:1ef4740c5a64
Parent:
2:7d53e9959b8f
Child:
4:e61cd14ec4f0
diff -r 7d53e9959b8f -r 1ef4740c5a64 main.cpp
--- a/main.cpp	Tue Jun 30 11:35:44 2015 +0000
+++ b/main.cpp	Wed Jul 01 09:55:47 2015 +0000
@@ -6,16 +6,19 @@
  
 int main() {
     pc.printf("new program \n");
- 
+     
     while(1) {
-        if (input == 1)
+        if (input)
         {
-            pc.printf("true \n");
+            pc.printf("digital in = 1 \n");
             led = 1;
+          //  wait(0);
         }
        else
        {
-                pc.printf("true \n");
+                pc.printf("digital in = 0 \n");
+                led = 0;
+             //   wait(0);
                 led = 0;
         }
     }