Diana Saveh
/
led
Library A: LED library to controll the led on the Happy Gecko.
Diff: led.cpp
- Revision:
- 1:55b5e6d28fb3
- Parent:
- 0:3cabc617d433
--- a/led.cpp Sat Nov 18 17:03:48 2017 +0000 +++ b/led.cpp Mon Feb 12 21:40:22 2018 +0000 @@ -17,6 +17,7 @@ LEDpin = !LEDpin; } + void LED::blink(float duration) { this->toggle(); wait(duration);