Diana Saveh
/
led
Library A: LED library to controll the led on the Happy Gecko.
main1.cpp@0:3cabc617d433, 2017-11-18 (annotated)
- 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?
User | Revision | Line number | New 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 | } |