Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- #include <LiquidCrystal_I2C.h>
- //----- Adressage matériel -----
- // En cas de non fonctionnement, mettez la ligne 8 en
- // commentaire et retirez le commentaire à la ligne 9.
- //LiquidCrystal_I2C lcd(0x27, 20, 4);
- //LiquidCrystal_I2C lcd(0x3F,20,4);
- // Resultat I2C Scanner :
- //Scanning...
- //I2C device found at address 0x50 !
- //I2C device found at address 0x68 !
- //done
- // donc :
- LiquidCrystal_I2C lcd(0x50, 20, 4);
- // ou
- //LiquidCrystal_I2C lcd(0x68, 20, 4);
- void setup()
- {
- lcd.init(); // initialisation de l'afficheur
- }
- void loop()
- {
- lcd.backlight();
- // Envoi du message
- lcd.setCursor(0, 0);
- lcd.print("Test Ecran");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement