LCD Hello World Program

Dependencies:   mbed TextLCD

Committer:
absatoufall
Date:
Wed Nov 25 08:37:08 2020 +0000
Revision:
2:15da1c028052
Parent:
1:99f6b4191e94
programmation du microcontroleur;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Eduvance 1:99f6b4191e94 1 #include "mbed.h" //header file
absatoufall 2:15da1c028052 2
absatoufall 2:15da1c028052 3 #include "LCD.h" // librairie TextLCD
Eduvance 0:9dc21787f133 4
absatoufall 2:15da1c028052 5 TextLCD lcd(D2,D3,D4,D5,D6,D7);
absatoufall 2:15da1c028052 6 int main() {
absatoufall 2:15da1c028052 7 lcd.printf("ST Nucleo L432KC"); // affichage sur la ligne 0
absatoufall 2:15da1c028052 8 lcd.locate(0,1); // positionnement du curseur en colonne 0 et ligne 1
absatoufall 2:15da1c028052 9 lcd.printf("Affiche. LCD 16x2");// affichage sur la ligne 1
absatoufall 2:15da1c028052 10 }
Eduvance 1:99f6b4191e94 11