Library A: LED library to controll the led on the Happy Gecko.

Dependencies:   mbed mbed

Committer:
diana_s
Date:
Sat Nov 18 17:03:48 2017 +0000
Revision:
0:3cabc617d433
Library A: LED library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
diana_s 0:3cabc617d433 1 #include "LED.h"
diana_s 0:3cabc617d433 2 #include "mbed.h"
diana_s 0:3cabc617d433 3
diana_s 0:3cabc617d433 4 LED gpio(LED0);
diana_s 0:3cabc617d433 5
diana_s 0:3cabc617d433 6 int main() {
diana_s 0:3cabc617d433 7 /*gpio.ledOn();
diana_s 0:3cabc617d433 8 wait(0.2);
diana_s 0:3cabc617d433 9 gpio.ledOff();
diana_s 0:3cabc617d433 10 wait(0.2);
diana_s 0:3cabc617d433 11 gpio.toggle();
diana_s 0:3cabc617d433 12 */
diana_s 0:3cabc617d433 13 gpio.blink(0.3);
diana_s 0:3cabc617d433 14
diana_s 0:3cabc617d433 15 }