Simple Blinky library.
Fork of Blinky by
Diff: Blinky.h
- Revision:
- 2:256c8d48f5e7
- Parent:
- 0:8fe86312b714
diff -r 5b51a271d47e -r 256c8d48f5e7 Blinky.h --- a/Blinky.h Mon Sep 19 19:52:49 2016 +0000 +++ b/Blinky.h Tue Nov 08 22:10:56 2016 +0000 @@ -37,6 +37,8 @@ void start(); /**Terminate the thread blinking the LED*/ void stop(); + /**Find the number of times the LED has been blinked */ + float times_blinked(); protected: /**Function to blink the LED*/ @@ -49,6 +51,8 @@ int _interval; /**Bool to stop blinking LED */ bool stop_blink; + /**Count of times LED blinked */ + float led_count; }; #endif