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.
Dependencies: BlinkLed HTTPClient EthernetInterface FatFileSystemCpp MSCFileSystem mbed-rtos mbed
Diff: BlinkLed.h
- Revision:
- 5:66c3398a14c9
- Parent:
- 0:dfd5cfea7112
diff -r f2d619e67d44 -r 66c3398a14c9 BlinkLed.h
--- a/BlinkLed.h Fri Aug 24 17:39:24 2012 +0000
+++ b/BlinkLed.h Tue Aug 28 14:41:17 2012 +0000
@@ -1,59 +1,62 @@
-/* BlinkLed.h */
-#ifndef BLINKLED_H_
-#define BLINKLED_H_
-
-#include "mbed.h"
-#include "rtos.h"
-
-/** LED which blinks automatically with RTOS
-*/
-class BlinkLed
-{
-public:
- /** Constructor
- */
- BlinkLed(PinName pin, float dutyChangeStep, const char* name = NULL);
-
- /** Destructor
- */
- ~BlinkLed();
-
- /** Start biinking
- */
- void startBlink();
-
- /** Finish biinking
- */
- void finishBlink();
-
-private:
- /** Copy constructor
- * Disable because it is only declaration
- */
- BlinkLed(const BlinkLed&);
-
- /** Copy assignment operators
- * Disable because it is only declaration
- */
- BlinkLed& operator=(const BlinkLed&);
-
- /** Function for blinking
- * This function will be bind to new thread
- */
- static void blink(void const *argument);
-
- /** Target Led
- */
- PwmOut led;
-
- /** Duty ratio step of changing every 20ms
- */
- float dutyChangeStep;
-
- /** Pointer to thread for blinking
- */
- Thread* thread;
-};
-
-
-#endif /* BLINKLED_H_ */
+/* BlinkLed.h */
+#ifndef BLINKLED_H_
+#define BLINKLED_H_
+
+#include "mbed.h"
+#include "rtos.h"
+
+/** LED which blinks automatically with RTOS
+*/
+class BlinkLed
+{
+public:
+ /** Constructor
+ */
+ BlinkLed(PinName pin, float dutyChangeStep, const char* name = NULL);
+
+ /** Destructor
+ */
+ ~BlinkLed();
+
+ /** Start biinking
+ */
+ void startBlink();
+
+ /** Finish biinking
+ */
+ void finishBlink();
+
+private:
+ /** Copy constructor
+ * Disable because it is only declaration
+ */
+ BlinkLed(const BlinkLed&);
+
+ /** Copy assignment operators
+ * Disable because it is only declaration
+ */
+ BlinkLed& operator=(const BlinkLed&);
+
+ /** Function for blinking
+ * This function will be bind to new thread
+ */
+ static void blink(void const *argument);
+
+ /** Target Led
+ */
+ PwmOut led;
+
+ /** Duty ratio step of changing every 20ms
+ */
+ float dutyChangeStep;
+
+ /** Flag of Continue Blink
+ */
+ bool continueBlink;
+
+ /** Pointer to thread for blinking
+ */
+ Thread* thread;
+};
+
+#endif /* BLINKLED_H_ */