Simple library for LED blinking.
Dependents: roam_v2 finalV1 finalV1 finalv2 ... more
Revision 4:abcdbfe38247, committed 2016-12-15
- Comitter:
- tbjazic
- Date:
- Thu Dec 15 10:56:25 2016 +0000
- Parent:
- 3:286a364f952f
- Commit message:
- Insignificant.
Changed in this revision
| Blinker.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Blinker.h Sat Dec 10 14:39:42 2016 +0000
+++ b/Blinker.h Thu Dec 15 10:56:25 2016 +0000
@@ -18,8 +18,13 @@
* int main() {
* Blinker myBlinker(LED3);
* myBlinker.blink(10);
- * wait(2);
+ * while(!myBlinker.isFinished()) {
+ * // do something else...
+ * }
* myBlinker.blink(5, 1);
+ * while(!myBlinker.isFinished()) {
+ * // do something else...
+ * }
* }
* @endcode
*/
@@ -32,6 +37,7 @@
/** Function recevies number of blinks (flashes) and a time of duration of each blink. */
void blink(int n, float t = 0.5);
+
/** Checks if the blinking is finished.
* @returns true if the complete process is finished, false otherwise.
*/