Given LED PinName and blink interval, spawns a thread that blinks that LED at the specified interval

Dependents:   Blinky_Tests Blinky_Tests_GreenTea1

Revision:
1:5b51a271d47e
Parent:
0:8fe86312b714
--- a/Blinky.cpp	Mon Sep 19 16:21:27 2016 +0000
+++ b/Blinky.cpp	Mon Sep 19 19:52:49 2016 +0000
@@ -3,6 +3,7 @@
 Blinky::Blinky(PinName led, int interval):
         _led(led), _interval(interval){
     stop_blink=false;
+    _led=1;
 }
 void Blinky::start(){
     _blinker.start(this, &Blinky::blink_led);