![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
hy
main.cpp@0:daa4f58b511e, 2016-03-24 (annotated)
- Committer:
- CarlaY
- Date:
- Thu Mar 24 16:03:15 2016 +0000
- Revision:
- 0:daa4f58b511e
ko;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
CarlaY | 0:daa4f58b511e | 1 | #include "mbed.h" |
CarlaY | 0:daa4f58b511e | 2 | |
CarlaY | 0:daa4f58b511e | 3 | DigitalOut myled(LED1); |
CarlaY | 0:daa4f58b511e | 4 | |
CarlaY | 0:daa4f58b511e | 5 | int main() { |
CarlaY | 0:daa4f58b511e | 6 | while(1) { |
CarlaY | 0:daa4f58b511e | 7 | myled = 1; |
CarlaY | 0:daa4f58b511e | 8 | wait(0.2); |
CarlaY | 0:daa4f58b511e | 9 | myled = 0; |
CarlaY | 0:daa4f58b511e | 10 | wait(0.2); |
CarlaY | 0:daa4f58b511e | 11 | } |
CarlaY | 0:daa4f58b511e | 12 | } |