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
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
4:1b2dcb20aad0 | 2017-06-27 | sarahmarshy |
"Update mbed-os" |
3:5dc3a82c48f6 | 2017-01-13 | mab5449 | Updated to mbed OS 5 |
2:87f26931d8d1 | 2015-03-27 | mbedAustin | Added license to main.c file. |
1:ce38014095c9 | 2014-09-21 | mbedAustin | updated libs |
0:5014bf742e9b | 2013-02-14 | mbed_official | Ticket Hello World |