The library can flash an LED or DigitalOut pin at 50% duty using a Ticker interrupt triggered toggle function. This library does NOT use wait() so that it can flash a pin while more code is being executed. Instead, it relies on Ticker generated interrupts. There is only one parameter required, the on/off time of the pin in seconds (i.e. 0.5 means 0.5 seconds on and 0.5 seconds off).
Revisions of ToggleFlash.h
Revision | Date | Message | Actions |
---|---|---|---|
3:dbd7ab16f171 | 2012-12-23 | Some changes compiles | File Diff Annotate |
2:fddd1a6486bd | 2012-12-22 | added first constructor to auto doc; | File Diff Annotate |
1:0764e2d49518 | 2012-12-22 | fixed error in auto doc | File Diff Annotate |
0:32fa44559a40 | 2012-12-22 | Library completed December 2012 | File Diff Annotate |