My code uses an LCD 1602 that works fine but i needed more lines.
Changed to the 2004 but now i have nothing displayed on the screen, the address of the old 1602 and the new 2004 are the same but nothing shows up
im using the <LiquidCrystal_I2C.h> library
LiquidCrystal_I2C lcd(0x27, 20, 4); // Set the LCD address to 0x27 for a 20x4 display
i changed this line to show 20, 4
apart from that nothing i can tell is different, its wired exactly the same
Has the new screen got a contrast control on it ?
docdoc
February 1, 2024, 12:14pm
3
Show us a picture of the current wiring, together with a link to your 20x4 LCD and exactly what is the library you're using 8there are many with the exact same name).
Or try this library first, IMHO it's one of the best I2C LCD libraries:
If the I2C adapters on the two devices are not identical then whichever library you are using probably won't work with your new device.
Stick with the HD44780 library mentioned previously in post #3 .
Don
system
Closed
July 30, 2024, 1:30pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.