Eduvance vanmat
/
07Counter_WITH_Buttons
Counter
main.cpp@0:776a127ae50b, 2014-05-19 (annotated)
- Committer:
- Eduvance
- Date:
- Mon May 19 10:25:26 2014 +0000
- Revision:
- 0:776a127ae50b
- Child:
- 1:97ee52dedac3
InitialRawCommit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Eduvance | 0:776a127ae50b | 1 | #include "mbed.h" |
Eduvance | 0:776a127ae50b | 2 | |
Eduvance | 0:776a127ae50b | 3 | DigitalOut myled(LED1); |
Eduvance | 0:776a127ae50b | 4 | |
Eduvance | 0:776a127ae50b | 5 | int main() { |
Eduvance | 0:776a127ae50b | 6 | while(1) { |
Eduvance | 0:776a127ae50b | 7 | myled = 1; |
Eduvance | 0:776a127ae50b | 8 | wait(0.2); |
Eduvance | 0:776a127ae50b | 9 | myled = 0; |
Eduvance | 0:776a127ae50b | 10 | wait(0.2); |
Eduvance | 0:776a127ae50b | 11 | } |
Eduvance | 0:776a127ae50b | 12 | } |