Santiago Escobar
/
mbed_blinky
Hello word
main.cpp@0:f663a175ba80, 2020-05-01 (annotated)
- Committer:
- SantiagoE
- Date:
- Fri May 01 19:30:16 2020 +0000
- Revision:
- 0:f663a175ba80
XD
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SantiagoE | 0:f663a175ba80 | 1 | #include "mbed.h" |
SantiagoE | 0:f663a175ba80 | 2 | |
SantiagoE | 0:f663a175ba80 | 3 | DigitalOut myled(LED1); |
SantiagoE | 0:f663a175ba80 | 4 | |
SantiagoE | 0:f663a175ba80 | 5 | int main() { |
SantiagoE | 0:f663a175ba80 | 6 | while(1) { |
SantiagoE | 0:f663a175ba80 | 7 | myled = 1; |
SantiagoE | 0:f663a175ba80 | 8 | wait(0.2); |
SantiagoE | 0:f663a175ba80 | 9 | myled = 0; |
SantiagoE | 0:f663a175ba80 | 10 | wait(0.2); |
SantiagoE | 0:f663a175ba80 | 11 | } |
SantiagoE | 0:f663a175ba80 | 12 | } |