Eduvance vanmat
/
06Counter_WITH_Buttons
Counter with Start Stop Control
main.cpp@0:267e57d332cb, 2014-05-17 (annotated)
- Committer:
- Eduvance
- Date:
- Sat May 17 16:33:48 2014 +0000
- Revision:
- 0:267e57d332cb
InitialRAWCommit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Eduvance | 0:267e57d332cb | 1 | #include "mbed.h" |
Eduvance | 0:267e57d332cb | 2 | |
Eduvance | 0:267e57d332cb | 3 | DigitalOut myled(LED1); |
Eduvance | 0:267e57d332cb | 4 | |
Eduvance | 0:267e57d332cb | 5 | int main() { |
Eduvance | 0:267e57d332cb | 6 | while(1) { |
Eduvance | 0:267e57d332cb | 7 | myled = 1; |
Eduvance | 0:267e57d332cb | 8 | wait(0.2); |
Eduvance | 0:267e57d332cb | 9 | myled = 0; |
Eduvance | 0:267e57d332cb | 10 | wait(0.2); |
Eduvance | 0:267e57d332cb | 11 | } |
Eduvance | 0:267e57d332cb | 12 | } |