The LowPowerTimeout API is a countdown timer that triggers a callback function when the timer runs out. The LowPowerTimeout interface can be though of as a one shot LowPowerTicker.
Fork of Timeout_HelloWorld by
Diff: main.cpp
- Revision:
- 5:28699dc8770e
- Parent:
- 2:50216cc75b4a
diff -r 5692f58a7971 -r 28699dc8770e main.cpp --- a/main.cpp Fri Jun 23 17:35:59 2017 -0500 +++ b/main.cpp Fri May 25 18:46:28 2018 +0000 @@ -15,7 +15,7 @@ */ #include "mbed.h" -Timeout flipper; +LowPowerTimeout flipper; DigitalOut led1(LED1); DigitalOut led2(LED2);