Lab5 code

Dependencies:   TSI

Fork of TSI_sample by William Marsh

Revision:
1:e6ffa08ad8bf
Parent:
0:4374caa1ef17
Child:
4:d54e74fbf82c
--- a/main.cpp	Wed Feb 15 11:45:56 2017 +0000
+++ b/main.cpp	Wed Feb 15 14:41:10 2017 +0000
@@ -51,9 +51,10 @@
                                           // When no touch --> 0
                                           // Left --> low value  Right --> high value
         pc.printf("%d", d) ;  
-        pc.putc(' ') ;                                
-        Thread::wait(200);
+        pc.putc(' ') ;
         if (d == 10) redThread.signal_set(0x1) ;
         if (d == 20) greenThread.signal_set(0x1) ;
+        Thread::wait(200);  // This polling rate is too slow - increase it
+                            // The slower rate maks it easier to output on the terminal
     }
 }
\ No newline at end of file