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
Revision 5:28699dc8770e, committed 2018-05-25
- Comitter:
- deepikabhavnani
- Date:
- Fri May 25 18:46:28 2018 +0000
- Parent:
- 4:5692f58a7971
- Commit message:
- Initial version;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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);