projet Gestion d'énergie
/
gestionenergie
LCD Hello World Program
main.cpp@1:99f6b4191e94, 2014-05-27 (annotated)
- Committer:
- Eduvance
- Date:
- Tue May 27 07:30:09 2014 +0000
- Revision:
- 1:99f6b4191e94
- Parent:
- 0:9dc21787f133
- Child:
- 2:15da1c028052
A
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Eduvance | 1:99f6b4191e94 | 1 | #include "mbed.h" //header file |
Eduvance | 1:99f6b4191e94 | 2 | #include "LCD.h" |
Eduvance | 0:9dc21787f133 | 3 | |
Eduvance | 1:99f6b4191e94 | 4 | DigitalOut myled(LED1); |
Eduvance | 1:99f6b4191e94 | 5 | int main() { |
Eduvance | 1:99f6b4191e94 | 6 | while(1) { |
Eduvance | 1:99f6b4191e94 | 7 | LCD_init(); //initialising LCD |
Eduvance | 1:99f6b4191e94 | 8 | display_to_LCD(0x48); // “H‟ |
Eduvance | 1:99f6b4191e94 | 9 | display_to_LCD(0x45); // “E‟ |
Eduvance | 1:99f6b4191e94 | 10 | display_to_LCD(0x4C); // “L‟ |
Eduvance | 1:99f6b4191e94 | 11 | display_to_LCD(0x4C); // “L‟ |
Eduvance | 1:99f6b4191e94 | 12 | display_to_LCD(0x4F); // “O‟ |
Eduvance | 1:99f6b4191e94 | 13 | wait(1); |
Eduvance | 1:99f6b4191e94 | 14 | |
Eduvance | 0:9dc21787f133 | 15 | } |
Eduvance | 1:99f6b4191e94 | 16 | } |