Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TSI_sample by
Diff: main.cpp
- Revision:
- 1:e6ffa08ad8bf
- Parent:
- 0:4374caa1ef17
- Child:
- 3:e0d192a9fdb0
- Child:
- 5: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