Gokhale Jayanthi
/
mbed_blinky
first program
Fork of mbed_blinky by
main.cpp@17:811ab688dd54, 2017-07-03 (annotated)
- Committer:
- gokhalej
- Date:
- Mon Jul 03 15:04:26 2017 +0000
- Revision:
- 17:811ab688dd54
- Parent:
- 4:81cea7a352b0
first version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan | 0:7dec7e9ac085 | 1 | #include "mbed.h" |
dan | 0:7dec7e9ac085 | 2 | |
dan | 0:7dec7e9ac085 | 3 | DigitalOut myled(LED1); |
dan | 0:7dec7e9ac085 | 4 | |
dan | 0:7dec7e9ac085 | 5 | int main() { |
dan | 0:7dec7e9ac085 | 6 | while(1) { |
dan | 0:7dec7e9ac085 | 7 | myled = 1; |
gokhalej | 17:811ab688dd54 | 8 | wait(0.5); |
dan | 0:7dec7e9ac085 | 9 | myled = 0; |
gokhalej | 17:811ab688dd54 | 10 | wait(0.5); |
stevep | 4:81cea7a352b0 | 11 | } |
dan | 0:7dec7e9ac085 | 12 | } |