Etape 6: Télécharger le croquis « Hello, World! »
#define LCDColumns 16
#define LCDRows 2
pour correspondre à votre unité d’affichage LCD.
Téléchargez le croquis sur votre Arduino pour obtenir l’affichage pour lire « Hello, World! »
Si votre moniteur ne fonctionne pas, vérifiez le câblage avec soin.
#include < LiquidCrystal.h >
#define RSPin 6
#define EnablePin 7
#define DS4 9
#define DS5 10
#define DS6 11
#define DS7 12
#define LCDColumns 16
#define LCDRows 2
Innovente lcd (RSPin, EnablePin, DS4, DS5, DS6, DS7) ;
void setup()
{
LCD.Begin (LCDColumns, LCDRows) ; Configurer l’écran LCD
lcd.setCursor(0,0) ;
LCD.Print ("Hello, World!") ;
}
void loop()
{
}