Michael Bass
/
DigitalOut_HelloWorld
Personal pork
Fork of DigitalOut_HelloWorld by
main.cpp@3:4e43551a6502, 2015-01-14 (annotated)
- Committer:
- manisman
- Date:
- Wed Jan 14 01:17:46 2015 +0000
- Revision:
- 3:4e43551a6502
- Parent:
- 2:b4e2eee99a28
added //
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:b5a9e0614efd | 1 | #include "mbed.h" |
mbed_official | 0:b5a9e0614efd | 2 | |
mbed_official | 0:b5a9e0614efd | 3 | DigitalOut myled(LED1); |
mbed_official | 0:b5a9e0614efd | 4 | |
mbed_official | 0:b5a9e0614efd | 5 | int main() { |
mbed_official | 0:b5a9e0614efd | 6 | while(1) { |
mbedAustin | 2:b4e2eee99a28 | 7 | myled = 1; // turn myled on |
mbed_official | 0:b5a9e0614efd | 8 | wait(0.2); |
mbedAustin | 2:b4e2eee99a28 | 9 | myled = 0; // turn myled off |
mbed_official | 0:b5a9e0614efd | 10 | wait(0.2); |
mbed_official | 0:b5a9e0614efd | 11 | } |
mbed_official | 0:b5a9e0614efd | 12 | } |
manisman | 3:4e43551a6502 | 13 | // added comment |