Dan Ludowise
/
mbed_blinky
hello world
main.cpp@0:6e979ca544b6, 2015-01-12 (annotated)
- Committer:
- dludowise
- Date:
- Mon Jan 12 20:23:03 2015 +0000
- Revision:
- 0:6e979ca544b6
hello world
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dludowise | 0:6e979ca544b6 | 1 | #include "mbed.h" |
dludowise | 0:6e979ca544b6 | 2 | |
dludowise | 0:6e979ca544b6 | 3 | DigitalOut myled(LED1); |
dludowise | 0:6e979ca544b6 | 4 | |
dludowise | 0:6e979ca544b6 | 5 | int main() { |
dludowise | 0:6e979ca544b6 | 6 | while(1) { |
dludowise | 0:6e979ca544b6 | 7 | myled = 1; |
dludowise | 0:6e979ca544b6 | 8 | wait(0.2); |
dludowise | 0:6e979ca544b6 | 9 | myled = 0; |
dludowise | 0:6e979ca544b6 | 10 | wait(0.2); |
dludowise | 0:6e979ca544b6 | 11 | } |
dludowise | 0:6e979ca544b6 | 12 | } |