first version

Dependencies:   TSI

Fork of TSI_sample by William Marsh

Files at this revision

API Documentation at this revision

Comitter:
WilliamMarshQMUL
Date:
Wed Feb 15 14:41:10 2017 +0000
Parent:
0:4374caa1ef17
Child:
2:e7b1f6275b63
Commit message:
Added comment about polling rate

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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