Paul Clarke
/
myFirstProgram
First Program
main.cpp@0:a8a5e8ffc316, 2010-10-12 (annotated)
- Committer:
- monpjc
- Date:
- Tue Oct 12 12:48:47 2010 +0000
- Revision:
- 0:a8a5e8ffc316
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
monpjc | 0:a8a5e8ffc316 | 1 | #include "mbed.h" |
monpjc | 0:a8a5e8ffc316 | 2 | |
monpjc | 0:a8a5e8ffc316 | 3 | DigitalOut myled(LED2); |
monpjc | 0:a8a5e8ffc316 | 4 | |
monpjc | 0:a8a5e8ffc316 | 5 | int main() { |
monpjc | 0:a8a5e8ffc316 | 6 | while(1) { |
monpjc | 0:a8a5e8ffc316 | 7 | myled = 1; |
monpjc | 0:a8a5e8ffc316 | 8 | wait(0.2); |
monpjc | 0:a8a5e8ffc316 | 9 | myled = 0; |
monpjc | 0:a8a5e8ffc316 | 10 | wait(0.2); |
monpjc | 0:a8a5e8ffc316 | 11 | } |
monpjc | 0:a8a5e8ffc316 | 12 | } |