Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BlinkLed by
Diff: BlinkLed.h
- Revision:
- 3:f317d057edde
- Parent:
- 2:1d0c09c1a8b4
- Child:
- 4:3b34689ec230
--- a/BlinkLed.h Mon Dec 24 06:38:42 2012 +0000
+++ b/BlinkLed.h Tue May 24 06:38:16 2016 +0000
@@ -12,7 +12,7 @@
public:
/** Constructor
*/
- BlinkLed(PinName pin, float dutyChangeStep);
+ BlinkLed(PinName, int);
/** Destructor
*/
@@ -21,14 +21,6 @@
/** Start biinking
*/
void startBlink();
-
- /** Finish biinking
- */
- void finishBlink();
-
- /** Check biinking
- */
- bool isBlinking();
private:
/** Copy constructor
@@ -48,15 +40,11 @@
/** Target Led
*/
- PwmOut led;
+ DigitalOut led;
- /** Duty ratio step of changing every 20ms
+ /** Blink time
*/
- float dutyChangeStep;
-
- /** Flag of pause
- */
- bool pause;
+ int n;
/** Pointer to thread for blinking
*/
