dracir9 / esp_touchscreen Goto Github PK
View Code? Open in Web Editor NEWResistive touch screen controller optimized for ESP32
License: MIT License
Resistive touch screen controller optimized for ESP32
License: MIT License
I tried your code with Wemos ESp32 wirring changes as per your image.
My first 2 off LCD's 3.5" 480x320 uno like sheilds worked.
I bought 2 more looked the same but the 4 wire uno pin outs are not the same?
it seems to conflict with TFT_eSPI. As your code works output to Serial port with all TFT_eSPI functions remarked.
It narrowed it down to ix= analogRead(XM); or iy= analogRead(YP); hanging on what ever ADC port I tried, when
TFT_eSPI. is run.
Any ideas?
Hello,
i have some problems in the example file "touch_calib", the test is mirrored and I'm not getting any touch input...
This is my TFT_eSPI user setup pinout:
#define TFT_PARALLEL_8_BIT
// The ESP32 and TFT the pins used for testing are:
#define TFT_CS 33 // Chip select control pin (library pulls permanently low
#define TFT_DC 15 // Data Command control pin - must use a pin in the range 0-31
#define TFT_RST 32 // Reset pin, toggles on startup
#define TFT_WR 4 // Write strobe control pin - must use a pin in the range 0-31
#define TFT_RD 2 // Read strobe control pin
#define TFT_D0 12 // Must use pins in the range 0-31 for the data bus
#define TFT_D1 13 // so a single register write sets/clears all bits.
#define TFT_D2 26 // Pins can be randomly assigned, this does not affect
#define TFT_D3 25 // TFT screen update performance.
#define TFT_D4 17
#define TFT_D5 16
#define TFT_D6 27
#define TFT_D7 14
And this is the config touch_calib file:
...
#define TOUCH_PIN_YP 33
#define TOUCH_PIN_XM 15
#define TOUCH_PIN_YM 13
#define TOUCH_PIN_XP 12
...
Do you have any idea what I could have done wrong?
Hi, dracir! Hope you are having a great day!
This is probably the dumbest question ever, but due to my age and a forced lack of proper coffee, my naturally confused little brain is requiring some clarification regarding the wiring of this touchy thing. I do not want to risk ruining my display, which is working just fine on the ESP32, so I figured better ask the person who knows best before trying.
So, this is what I think I've got so far:
YP corresponds to LCD_CS
XM corresponds to LCD_WR
YM corresponds to LCD_RS (LCD_CD in my 2.8" Elegoo tft's silkscreen)
XP corresponds to LCD_RD
Am I correct? Please correct me if I'm not.
Also, I have never owned a Wemos, so your example picture is intriguing me. Why 4 wires? Could you please specify what colors correspond to what GPIO and LCD pin?
Thanks in advance for taking the time, and thank you also for this brilliant idea!
Sam
I"am novice for ESP32 and just learning examples. I was not able to compile examples from the library even.
I add the report about errors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.