William Marsh / Mbed OS DACandticker_sample_with_debug
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
     }
 }