Diana Saveh
/
led
Library A: LED library to controll the led on the Happy Gecko.
main1.cpp@1:55b5e6d28fb3, 2018-02-12 (annotated)
- Committer:
- diana_s
- Date:
- Mon Feb 12 21:40:22 2018 +0000
- Revision:
- 1:55b5e6d28fb3
- Parent:
- 0:3cabc617d433
updated doc;
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 | } |