Closed ido1990 closed 5 years ago
The I2C address of your display interface is 0x27, so change the value in line 22 of lcd1602.h from 0x3f to 0x27.
The I2C address of your display interface is 0x27, so change the value in line 22 of lcd1602.h from 0x3f to 0x27.
Hi Ed! Already changed it there...
Are the gpio pins correctly set in your preferences?
The i2c adress is shifted one place to the left before it is ised, so try 0x13 and 0x1f.
Are the gpio pins correctly set in your preferences?
Yes. This is my config:
pin_enc_clk = -1 # GPIO Pin number for rotary encoder "CLK"
pin_enc_dt = -1 # GPIO Pin number for rotary encoder "DT"
pin_enc_sw = -1 # GPIO Pin number for rotary encoder "SW"
pin_ir = 35 # GPIO Pin number for IR receiver VS1838B
pin_sd_cs = 21 # GPIO Pin number for SD card "CS"
pin_tft_cs = 15 # GPIO Pin number for TFT "CS"
pin_tft_dc = 2 # GPIO Pin number for TFT "DC"
pin_tft_scl = 33 # GPIO Pin number for SCL
pin_tft_sda = 34 # GPIO Pin number for SDA
pin_vs_cs = 5 # GPIO Pin number for VS1053 "CS"
pin_vs_dcs = 32 # GPIO Pin number for VS1053 "DCS"
pin_vs_dreq = 4 # GPIO Pin number for VS1053 "DREQ"
(disabled the rotary encoder for now)
The i2c adress is shifted one place to the left before it is ised, so try 0x13 and 0x1f.
Tried now. Same error.
I just noticed that pins 34-36 and 39 are input only. Changed to 25 and 26. Now getting this:
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
D: LCD1602 communication error!
Try to runthe i2c scan sample project.
Ok, so the pins are 22 and 21. Can't use other pins. And I had to change the address to 0x27 Thank you so much!
BTW, is there any way to change the text on the screen to the preset name? Some of my streams doesn't have title...
It would not be so hard to change the screen texts. It is a good opportunity to learn programming.
It would not be so hard to change the screen texts. It is a good opportunity to learn programming.
I'll dig into it. Thank you!
Hi,
can you please post your working code? I am not able to figure out why the lcd is not working even if I dont get any errors. Thanks
Hi,
can you please post your working code? I am not able to figure out why the lcd is not working even if I dont get any errors. Thanks
Hi, I recommend you to open new issue, yours might be different from what I had.
Píše mi to stejnou chybu a nevím proč i když mám piny nastavený 21, a 22.
Hi, Thank you for your project! Just got my parts and started to assemble it. I'm using small LCD display that is working with Arduino over I2C. The chip is ST7066 (HD44780 compatible) so it should work like 1602...
The LCD is working with this code:
But when I connect it to the ESP32 I get an error:
And then it crashes:
(had to cut lines from the output, it was too long to paste here)
Looking for clues to debug this issue... Any help would be appreciated :) Thank you!