Setup 2.8 inch ST7789 / ILI9341 screen #1175
-
Hi. Module : ESP32-WROOM-32 Display screen : https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/displays/wiring-guide-generic-2.4-spi-esp32.md Driver : ST7789 - v1.1 Manifest : {
"include": [
"$(MODULES)/drivers/st7789/manifest.json",
"$(MODDABLE)/modules/drivers/xpt2046/manifest.json"
],
"defines": {
"spi": {
"mosi_pin": 22,
"miso_pin": 21,
"sck_pin": 23
},
"ili9341": {
"cs_pin": 18,
"dc_pin": 19,
"rst_pin": 5,
"touch_pin": 4,
"spi_port": "HSPI_HOST",
"flipX": true
},
"xpt2046": {
"cs_pin": 4,
"touch_pin": 15,
"spi_port": "HSPI_HOST",
"raw_left": 141,
"raw_right": 1955,
"raw_top": 1970,
"raw_bottom": 158
}
}
} I used the drag and drop piu example, but unfortunately, when dragging the objects, it doesn't recognize the touch properly, and for example, if I touch the top of the screen, it thinks I'm touching the bottom of the screen. How should I solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
When drag objects : |
Beta Was this translation helpful? Give feedback.
-
Why?!! InShot_20230716_211429525.mp4 |
Beta Was this translation helpful? Give feedback.
-
Why is the color different??! PIU transition : |
Beta Was this translation helpful? Give feedback.
If you also had this problem and could not receive the touch correctly and the opposite points were touched, it is enough to solve this problem in xpt2046 definitions:
Instead :
write this: