Eduvance vanmat
/
05Pulse_Button_LED
Pulse with LED
main.cpp@0:4bffa357d089, 2014-05-19 (annotated)
- Committer:
- Eduvance
- Date:
- Mon May 19 10:22:12 2014 +0000
- Revision:
- 0:4bffa357d089
- Child:
- 1:7f83116d4810
initialRawCommit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Eduvance | 0:4bffa357d089 | 1 | #include "mbed.h" |
Eduvance | 0:4bffa357d089 | 2 | |
Eduvance | 0:4bffa357d089 | 3 | DigitalOut myled(LED1); |
Eduvance | 0:4bffa357d089 | 4 | |
Eduvance | 0:4bffa357d089 | 5 | int main() { |
Eduvance | 0:4bffa357d089 | 6 | while(1) { |
Eduvance | 0:4bffa357d089 | 7 | myled = 1; |
Eduvance | 0:4bffa357d089 | 8 | wait(0.2); |
Eduvance | 0:4bffa357d089 | 9 | myled = 0; |
Eduvance | 0:4bffa357d089 | 10 | wait(0.2); |
Eduvance | 0:4bffa357d089 | 11 | } |
Eduvance | 0:4bffa357d089 | 12 | } |