blink
Dependencies: mbed
main.cpp@0:d1f0a19ee2f1, 2015-05-16 (annotated)
- Committer:
- fonz626
- Date:
- Sat May 16 21:42:40 2015 +0000
- Revision:
- 0:d1f0a19ee2f1
easy program - blink
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fonz626 | 0:d1f0a19ee2f1 | 1 | #include "mbed.h" |
fonz626 | 0:d1f0a19ee2f1 | 2 | |
fonz626 | 0:d1f0a19ee2f1 | 3 | DigitalOut myled(LED2); |
fonz626 | 0:d1f0a19ee2f1 | 4 | |
fonz626 | 0:d1f0a19ee2f1 | 5 | int main() { |
fonz626 | 0:d1f0a19ee2f1 | 6 | while(1) { |
fonz626 | 0:d1f0a19ee2f1 | 7 | myled = 1; |
fonz626 | 0:d1f0a19ee2f1 | 8 | wait(0.2); |
fonz626 | 0:d1f0a19ee2f1 | 9 | myled = 0; |
fonz626 | 0:d1f0a19ee2f1 | 10 | wait(0.2); |
fonz626 | 0:d1f0a19ee2f1 | 11 | } |
fonz626 | 0:d1f0a19ee2f1 | 12 | } |