Minden alkalommal átírom a 20,4-et 16,2-re de csak villog, és a felső sorban a 16 db kocka...kapu48 írta:Még mindig rossz: lcd.begin (20,4); !!!!!????
javitsad: lcd.begin (16,2);
Ezt a kódot futtatom és csak villog...
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7); // 0x27 is the I2C bus address for an unmodified backpack
void setup()
{
// activate LCD module
lcd.begin (16,2); // for 16 x 2 LCD module pse change it
lcd.setBacklightPin(3,POSITIVE);
lcd.setBacklight(HIGH);
lcd.home (); // set cursor to 0,0
lcd.print(" Szia, Juvi!");
}
void loop()
{
lcd.setBacklight(LOW); // Backlight off
delay(250);
lcd.setBacklight(HIGH); // Backlight on
lcd.setCursor (0,1); // go to start of 2nd line
lcd.print(millis());
// for 16 x 2 LCD module pse remark the following 4 rows
//lcd.setCursor (0,2); // go to start of 3th line
//lcd.print(" megy ez rendesen!");
//lcd.setCursor (0,3); // go to start of 4th line
//lcd.print("12345678901234567890");
delay(1000);
}