Comments (6)
Okay, thank you so much.
I will try this in the afternoon.
from esp-idf-parallel-tft.
The 4-line resistor touch screen uses 4 pins.
- X(+):Digital Output
- X(-):Digital Output/Analog Input
- Y(+):Digital Output/Analog Input
- Y(-):Digital Output
ESP-IDF cannot provide both digital output and analog input at the same time using a single gpio.
Two GPIOs are required to perform digital output and analog input.
(X-) and ESP32 are connected by two wires.
(Y+) and ESP32 are connected by two wires.
(X-) ----+---- Gpio for Digital Output
+---- Gpio for Analog Input
(Y+) ----+---- Gpio for Digital Output
+---- Gpio for Analog Input
When reading analog with the ESP-IDF ADC, use the channel number instead of the GPIO number.
adc_yp is ADC1 channel# for reading Y+ analog value.
adc_xm is ADC1 channel# for reading X- analog value.
Refer to the ESP32 data sheet for the relationship between ADC channels and GPIOs.
The explanation was difficult to understand, so I updated the README.
from esp-idf-parallel-tft.
Oh so from the same lcd pin i have to connect to 2 esp32 pins? 1 for the input and 1 for the output?
from esp-idf-parallel-tft.
Yes
You're right.
from the same lcd pin you have to connect to 2 esp32 pins
(X-) ----+---- Gpio for Digital Output
+---- Gpio for Analog Input
(Y+) ----+---- Gpio for Digital Output
+---- Gpio for Analog Input
from esp-idf-parallel-tft.
These TFTs are designed for the AtMega328 (Arduino UNO).
With AtMega328 (Arduno UNO), one GPIO can be used by switching between digital output and analog input at runtime.
However, ESP-IDF cannot do this, so two GPIOs are required.
from esp-idf-parallel-tft.
Thank you :), now it's working.
Im closing the issue.
from esp-idf-parallel-tft.
Related Issues (20)
- IMAGE HOT 1
- IMAGE
- Esp32s2 compilation error. Because it has only one I2S HOT 3
- IMAGES HOT 30
- How to use this warehouse with LVGL? HOT 2
- Use in platformio
- 16-bit parallel port support? HOT 5
- QUESTION: SPI or parallel for new designs? HOT 2
- Add ST7789 support HOT 6
- QUESTION: open-smart ILI9320 not support HOT 2
- How to find 4-wire resistance touchscreen feature
- ESP IDF Component Manager HOT 4
- Add support for R61529 HOT 7
- Support for ESP32S3 HOT 10
- How to connect ESP-32 HOT 4
- [GIF IMAGE FOR TFT SCREEN] HOT 1
- [ILI9806E SUPPORT?] HOT 1
- How can i add the TFT configuration to menuconfig in a scratch project ? HOT 3
- usb camera with lcd HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-idf-parallel-tft.