
Hello World for Ticker
Fork of Ticker_HelloWorld by
Use
Ticker is an interrupt driven time interrupt. A ticker works like a kitchen timer, you set it up to tick down from some value in seconds, when it reaches 0 it calls a callback function, then resets the ticker and starts the whole process over again. A ticker can be used to cause periodic events, like blinking an LED on and Off at a certain rate. A tickers maximum time it can handle is 30min, for anything greater consider using the real time clock functionality. In this example LED1 is controlled by the main while look, while LED2 is controlled by the Ticker callback function.
API
API reference.
Import librarymbed
Revision 3:5dc3a82c48f6, committed 2017-01-13
- Comitter:
- mab5449
- Date:
- Fri Jan 13 21:08:14 2017 +0000
- Parent:
- 2:87f26931d8d1
- Child:
- 4:1b2dcb20aad0
- Commit message:
- Updated to mbed OS 5
Changed in this revision
mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Fri Jan 13 21:08:14 2017 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#2885c1b41e63158cb6faf5f107cd821ae06ef26c
--- a/mbed.bld Fri Mar 27 20:17:43 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file