Hello World for Ticker

Fork of Ticker_HelloWorld by Mbed

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

No documentation found.
Committer:
sarahmarshy
Date:
Tue Jun 27 11:37:57 2017 -0500
Revision:
4:1b2dcb20aad0
Parent:
3:5dc3a82c48f6
"Update mbed-os"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sarahmarshy 4:1b2dcb20aad0 1 https://github.com/ARMmbed/mbed-os/#c9e63f14085f5751ff5ead79a7c0382d50a813a2