How to use the Touch_RA8875.cpp library #631
Replies: 2 comments 1 reply
-
Hi, BlyngGO has a config example (with touch pins definition here), only it's for multiple displays so you'll have to cherry-pick :) You can look for the |
Beta Was this translation helpful? Give feedback.
-
Sorry for my English. I'm redoing the Touch_RA8875 library for resistive touch screens. The RA8875 controller itself controls this screen without requiring any other circuit. I believe this was the idea when it was originally created by @tobi807. I analyzed the library and found that it cannot use another SPI channel, since the display does not have one. It makes no sense to connect to a specific SPI of the MCU, in this case the ESP32. Only the INT pin of the RA8875 should be used to receive the occurrence of events. I analyzed the code and found problems. The internal register of the RA8875 is not sending the value of the x,y position of the screen, but it is triggering the interrupt event and indicating that there was a touch. I'm checking this and rewriting some of the code. I'll leave it according to the LovyanGFX development standard. With LovyanGFX, sending data to the display was very fast. Despite this, the implementation of the touch screen never had or always failed. I saw @tobi807's code that started the project, but I don't understand why it is not in the touch folder of the LovyanGFX project. In addition, I am also basing myself on another native project that is on buydisplay and sumotoy among others to help in this journey. I hope that @tobozo, @okuoku, @lefty01, @zingo, among others, can help me in this project to adjust the RA8875 touch screen. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
tobi807 implements a touch screen (Touch_RA8875.cpp) for the RA8875, which is the native resistive screen of the RA8875 integrated circuit.
This implementation is in: (https://github.com/tobi807/LovyanGFX/tree/1b029ef324f3ee53e3f724879ec07a302d402249)
I would like to know how to configure it? I believe that you only need the INT pin, since MISO, MOSI, CLK and CS of the SPI must be the same as the display, that is, the same communication path. I use ESP32-S3 N16R8
Beta Was this translation helpful? Give feedback.
All reactions