![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LCD Hello World Program
main.cpp@0:9dc21787f133, 2014-05-19 (annotated)
- Committer:
- Eduvance
- Date:
- Mon May 19 10:20:36 2014 +0000
- Revision:
- 0:9dc21787f133
- Child:
- 1:99f6b4191e94
InitialRaw Commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Eduvance | 0:9dc21787f133 | 1 | #include "mbed.h" |
Eduvance | 0:9dc21787f133 | 2 | |
Eduvance | 0:9dc21787f133 | 3 | DigitalOut myled(LED1); |
Eduvance | 0:9dc21787f133 | 4 | |
Eduvance | 0:9dc21787f133 | 5 | int main() { |
Eduvance | 0:9dc21787f133 | 6 | while(1) { |
Eduvance | 0:9dc21787f133 | 7 | myled = 1; |
Eduvance | 0:9dc21787f133 | 8 | wait(0.2); |
Eduvance | 0:9dc21787f133 | 9 | myled = 0; |
Eduvance | 0:9dc21787f133 | 10 | wait(0.2); |
Eduvance | 0:9dc21787f133 | 11 | } |
Eduvance | 0:9dc21787f133 | 12 | } |