-
Notifications
You must be signed in to change notification settings - Fork 48
Two Issues with ESP32-S3-BOX-3: GT911 Touch Offset and SD Card Driver Problems #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
OK so with the SD card your host is wrong for the comment you have. You need to set that to
This is how it is done in the ESP32 SDK so I kept it that way. The other thing is there is a speed limit for SPI SSD of 10mHz. You have it set to 20mHz The touch is easy to fix. You are using the GT911 touch IC and that IC you have the ability to set the touch resolution. It doesn't come defaulted to what your display is so we need to change that... add this code after you create the touch driver and before you do any display rotation. I also suggest having this code before the touch calibration and you are going to need to redo the calibration once this code is added. if indev.hw_size != (320, 240):
fw = indev.firmware_config
fw.width = 320
fw.height = 240
fw.save()
del fw |
Here is a link to all of the things you can adjust using that firmware config for the GT911 touch IC... Just remember to call |
your SPI for the SDCard might have some pins that are flip flopped... Manufacturers are a pain with labeling inconsistencies between devices. You may want to flip flop these pins as a test.
MOSI - Master Out Slave In DI = Data In I have seen this many times and it sure does make things confusing. The way SPI pins are named and how manufacturers tend to label things is what makes it confusing. |
Thank you very much for your reply. I have been on a business trip recently and haven’t had the time to do the testing. I apologize for that. I tried the code you provided, but the touch functionality still has significant issues. It seems that the touch is only working in a small area in the middle of the lower half of the screen, and other parts are not responsive. I’m not sure if this is a hardware issue. I’ll try flashing back to the official firmware and test it again. The SD card has the same problem—it doesn’t get recognized by the driver. I also tested it with the official MicroPython firmware, but it still didn’t work. It might be a hardware design issue, which I can’t seem to resolve. Thank you once again for your reply. Is there a community for lvgl-micropython where I can learn more? |
You are using what is called the CYD (Cheap Yellow Display) board. I believe I should have a config file set up for that display. I will check and see if I do. |
Hello,
I'm encountering two issues while using the ESP32-S3-BOX-3 development board from Espressif. I hope someone can help me out. The development board documentation can be found here: [ESP-BOX AIoT Development Framework](https://github.com/espressif/esp-box).
Issue 1: GT911 Touch Offset
The display works fine, but there is a touch offset. The touch only works correctly when I touch about 5-10 mm below the slider. I have referred to [GT911 Initialization failed and it cannot be used with board](https://github.com/espressif/esp-box/issues/XXX), but the problem still persists.
Code to Test Display and Touch Functions
screen.py
Issue 2: SD Card Driver
I tried to use both SPI mode and SDMMC mode to drive the SD card, but neither worked. I also referred to [Mounting SD CARD with ELECROW 5" Display](https://github.com/elecrow/elecrow-5inch-lcd/issues/XXX), but still couldn't resolve the issue.
SPI MODE
SDMMC MODE
I would really appreciate any help on these issues. Thank you!
The text was updated successfully, but these errors were encountered: