LedBlink library makes it possible to change blink frequency of a given LED by calling the Blink function with a float parameter elsewhere in the code to visualise state changes in a program.

Revision:
1:e05abb2ca7dd
Parent:
0:b536f9dc90ac
Child:
3:9d5aa4d61bf0
--- a/LedBlink.cpp	Mon Dec 07 12:29:33 2015 +0000
+++ b/LedBlink.cpp	Mon Dec 07 13:26:38 2015 +0000
@@ -5,13 +5,12 @@
 bool ChangeStatusFlag = false;
 
 LedBlink::LedBlink(PinName pin) :_pin(pin) {
-    _pin = 0;
+    _pin = 1;
     }
     
 void LedBlink::LedBlinkCallback(void) {
-    //float led1;
     if (led_timer == 0){
-        _pin = 0;
+        _pin = 1;
         }
     if (led_timer != 0){ 
         _pin = !_pin;