- I2C Address : 0x20-0x27 (0x20 default)
#include "LiquidCrystal_I2C.h" LiquidCrystal_I2C(adresse,colonne,ligne); void setup() lcd.init(); void loop() lcd.clear(); // efface l'écran et positionne le curseur à 0,0 lcd.home(); // positionne le curseur à 0,0 lcd.setCursor(colonne, ligne); // début 0,0 lcd.cursor(); // souligne le curseur lcd.noCursor(); lcd.blink(); // clignote le curseur lcd.noBlink(); lcd.display(); // Turn the display on(quickly) lcd.noDisplay(); // Turn the display 0ff(quickly) lcd.backlight(); // retroéclairage lcd.noBacklight(); lcd.scrollDisplayLeft(); // Make the display scroll left without changing the RAM lcd.scrollDisplayRight(); //Make the display scroll right without changing the RAM lcd.autoscroll(); // This will 'right justify' text from the cursor lcd.noAutoscroll(); // This will 'left justify' text from the cursor lcd.leftToRight(); // This is for text that flows Left to Right lcd.rightToLeft(); // This is for text that flows Right to Left lcd.print("texte"); lcd.print(variable, base); // base BIN, OCT, DEC, HEX, 2 lcd.createChar(numero, nom); // uint8_t nom[8] = {0x0,0xE,0x15,0x17,0x11,0xE,0x0}; lcd.write(numero); // ou bien Serial.read()
#include "Wire.h" #include "LiquidCrystal_I2C.h" LiquidCrystal_I2C lcd(0x20,16,4); void setup() { lcd.init(); lcd.backlight(); lcd.print("Bonjour Pym-s !"); } void loop() { }