03-01-2023, 17:16
Witam. Mam problem z wyświetlaniem napisów na wyświetlaczu 16x2 z modułem I2c. Nie zależnie czy podłącze SDA i SCL pod wyjście cyfrowe czy analogowe to wyświetla mi tylko po jednej literze z wiersza czyli "H" i "L" i nic poza tym. Adres wyświetlacza sprawdzałem i jest 0x3F. Biblioteka wgrana. Co robie żle?
Kod:
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F,16,2); // set the LCD address to 0x3F for a 16 chars and 2 line display
void setup() {
lcd.init();
lcd.clear();
lcd.backlight(); // Make sure backlight is on
// Print a message on both lines of the LCD.
lcd.setCursor(2,0); //Set cursor to character 2 on line 0
lcd.print("Hello world!");
lcd.setCursor(2,1); //Move cursor to character 2 on line 1
lcd.print("LCD Tutorial");
}
void loop() {
}