James Cruickshanks
/
MBEDdemo2
test mbed led
main.cpp@0:537326b784dd, 2013-10-15 (annotated)
- Committer:
- ABT
- Date:
- Tue Oct 15 11:49:59 2013 +0000
- Revision:
- 0:537326b784dd
led code to test mbed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ABT | 0:537326b784dd | 1 | #include "mbed.h" |
ABT | 0:537326b784dd | 2 | |
ABT | 0:537326b784dd | 3 | DigitalOut myled(LED1); |
ABT | 0:537326b784dd | 4 | |
ABT | 0:537326b784dd | 5 | int main() { |
ABT | 0:537326b784dd | 6 | while(1) { |
ABT | 0:537326b784dd | 7 | myled = 1; |
ABT | 0:537326b784dd | 8 | wait(0.2); |
ABT | 0:537326b784dd | 9 | myled = 0; |
ABT | 0:537326b784dd | 10 | wait(0.2); |
ABT | 0:537326b784dd | 11 | } |
ABT | 0:537326b784dd | 12 | } |