esp-arduino-libs / ESP32_Display_Panel

Arduino library of driving display panel for the ESP SoCs
Apache License 2.0
57 stars 13 forks source link

"esp_memory_utils.h" #15

Open ReacherS3 opened 3 months ago

ReacherS3 commented 3 months ago

Good Day Guys when loading the Squareline porting example on the new update I am experiencing the following error not sure why and there's no Library for it?

`c:\Users\esp\Desktop\sqaure2\libraries\ESP32_Display_Panel\src\lcd\ESP_PanelLcd.cpp:13:10: fatal error: esp_memory_utils.h: No such file or directory

include "esp_memory_utils.h"

      ^~~~~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

Compilation error: exit status 1`

Lzw655 commented 3 months ago

Hi @ReacherS3, the version of arduino-esp32 should be v3.0.0-alpha3 as shown in README.

ReacherS3 commented 3 months ago

Hi @ReacherS3, the version of arduino-esp32 should be v3.0.0-alpha3 as shown in README.

Thanks @Lzw655 I have no idea how to get that running.

Lzw655 commented 3 months ago

@ReacherS3 It's a development release. You can follow the docs to install it. BTW, should use https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json url.

ReacherS3 commented 3 months ago

@Lzw655 Thank you the mistake was on my side I never entered the index URL that's why it never registered in the IDE under ESP32 to update to v3 thank for the assistance and always being available to assist you are the best!!

I will upload the files that I promised as soon as I can get them to fit on Github

Lzw655 commented 3 months ago

Yeah, also thank you for using this library. 😉

ReacherS3 commented 3 months ago

Chip The previous version supported the CH422G Io expansion chip the new release does not contain the expansion chip files so as soon as I enable #define ESP_PANEL_USE_TOUCH (0) // 0/1 it interferes with the display is there a way to fix this?

I believe if I cant enable the touch I will not be able to use #define ESP_PANEL_USE_EXPANDER (0) // 0/1 as well?

ReacherS3 commented 3 months ago

If I update accordingly I get the following errors!

ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3818,len:0x508 load:0x403c9700,len:0x4 load:0x403c9704,len:0xad0 load:0x403cc700,len:0x29d8 entry 0x403c9880 Squareline porting example start Initialize panel device E (19) tca95xx_8bit: write_direction_reg(147): Write direction reg failed E (20) tca95xx_8bit: reset(164): Write dir reg failed E (24) tca95xx_8bit: esp_io_expander_new_i2c_tca95xx_8bit(96): Reset failed E (31) tca95xx_8bit: [TCA95xx_8bit.cpp:63] begin(): Check error -1 (ESP_FAIL) E (60) lcd_panel.io.i2c: panel_io_i2c_rx_buffer(135): i2c transaction failed E (60) GT911: touch_gt911_read_cfg(362): GT911 read error! E (61) GT911: esp_lcd_touch_new_i2c_gt911(128): GT911 init failed E (67) GT911: Error (0xffffffff)! Touch controller GT911 initialization failed! Initialize LVGL Create UI Squareline porting example end

Lzw655 commented 3 months ago

Hi @ReacherS3, the ESP32_IO_Expander library didn't support CH422G. Are you using a third-party one? If so, can you provide it to me? Then I can add CH422G into the ESP32_IO_Expander.

image

Lzw655 commented 3 months ago

Oh, I realize the reason for your issues, please check the below points:

  1. For the touch, set ESP_PANEL_TOUCH_I2C_ADDRESS correctly. image
  2. For the IO expander, set ESP_PANEL_EXPANDER_I2C_ADDRESS correctly. Since some expanders can be assigned various I2C addresses, users should adjust ESP_PANEL_EXPANDER_I2C_ADDRESS based on the actual circumstances.
ReacherS3 commented 3 months ago

Hi @Lzw655 Battery Board

Above is the board that I am using it's definately using CH422G as the previous version of Display panel and IO expander supported CH422G CHIP.

https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-4.3/S3-4.3-libraries.zip

This link will download the required files that I used before including the CH422G Chip files

Thanks @Lzw655

ReacherS3 commented 2 months ago

Define SD SD CH422G

I use the CH422G for CAN bus communication, Backlight, SD Card etc.

@Lzw655

Lzw655 commented 1 month ago

Hi @ReacherS3, sorry for the late. I have been very busy these days.

Thanks to the contribution of @lboue, we can use CH422G in the PR now. Can you try it again?

lboue commented 1 month ago

Hi @ReacherS3, sorry for the late. I have been very busy these days.

Thanks to the contribution of @lboue, we can use CH422G in the PR now. Can you try it again?

Thanks @Lzw655 This CH422G test file is working with arduino-esp3 3.0.0-alpha3 release: CH422G_Test_3.0.0-alpha3.ino

ReacherS3 commented 1 month ago

Thanks to the both of you and the effort and contributions you are awesome guys I am busy myself these days no need to apologize.

I will load up everything once I get back to that part of the project integrating temperature sensors now and GPS tracking capabilities once that's complete I will revert back to the updated library. @lboue @Lzw655

Once again thank you so much for all the support on this library!!

lboue commented 1 month ago

@ReacherS3 Can you try last released versions?

ReacherS3 commented 1 month ago

Thanks @lboue

Just a quick question I have managed to load all the updated files and managed to get the display running without any errors at all which is pretty good considering I always had the LCD errors they are fixed now.

My concern now is once I start the device and leave it running for about an hour or more the screen starts drifting very slowly to the side or bottom completely throwing out my loaded screen and duplicate display across one screen and everything stops functioning a reset fixes the issue but this will cause issues once installed everywhere in mass production units.

@Lzw655

Lzw655 commented 1 month ago

Hi @ReacherS3, could you take a video to show me the issue? I think it's the screen drift issue of RGB LCD. Did you try the solution here?

lboue commented 1 month ago

@ReacherS3 Perhaps a new thread should be opened for this drift issue?