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.
Diff: main.cpp
- Revision:
- 4:42b85520dca6
- Parent:
- 3:f04c8a88a27d
diff -r f04c8a88a27d -r 42b85520dca6 main.cpp --- a/main.cpp Mon Feb 04 16:11:54 2019 +0000 +++ b/main.cpp Thu Feb 06 22:42:30 2020 +0000 @@ -71,11 +71,11 @@ while (true) { pc.printf("Update at 64 x 100ms giving about 0.15Hz\n"); tick.attach_us(callback(&writeAout), update_us); // setup ticker to write to AnalogOut - wait(30.0) ; // wait 30 sec - 30000ms + ThisThread::sleep_for(30000) ; // wait 30 sec update_us = 150000 ; // 150ms pc.printf("Update at 64 x 150ms giving about 0.1Hz\n"); tick.attach_us(callback(&writeAout), update_us); // setup ticker to write to AnalogOut - wait(30.0) ; // wait 30 sec - 30000ms + ThisThread::sleep_for(30000) ; // wait 30 sec update_us = 100000 ; // 100ms } }