Diana Saveh
/
led
Library A: LED library to controll the led on the Happy Gecko.
Diff: main1.cpp
- Revision:
- 0:3cabc617d433
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main1.cpp Sat Nov 18 17:03:48 2017 +0000 @@ -0,0 +1,15 @@ +#include "LED.h" +#include "mbed.h" + +LED gpio(LED0); + +int main() { + /*gpio.ledOn(); + wait(0.2); + gpio.ledOff(); + wait(0.2); + gpio.toggle(); + */ + gpio.blink(0.3); + +} \ No newline at end of file