Skip to content
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

touch not working IL9341 & xpt2046 #433

Closed
cyberumut opened this issue Aug 1, 2023 · 11 comments
Closed

touch not working IL9341 & xpt2046 #433

cyberumut opened this issue Aug 1, 2023 · 11 comments

Comments

@cyberumut
Copy link

cyberumut commented Aug 1, 2023

hello dear,
i m using esp32s3 with il9341 xpt2046 touch screen
tft display working but touch not working can u help me ?

my config :

@lovyan03
Copy link
Owner

lovyan03 commented Aug 1, 2023

XPT2046から得られる生の値はドットバイドットではありません。
とても大きく、300~4000程度の値が得られます。
したがって、あなたの以下の設定はタッチ座標が大きくずれます。

auto cfg = _touch_instance.config();
cfg.x_min = 0;
cfg.x_max = 239;
cfg.y_min = 0;
cfg.y_max = 319;

この部分の設定を変更し、x_maxとy_maxに4000に一旦設定して動作を確認するといいでしょう。
あるいはデフォルト値が設定されているので、この座標値の設定はコメントアウトしてもよいと思います。

@cyberumut
Copy link
Author

i m setting this but still not working
`

    auto cfg = _touch_instance.config();
    cfg.x_min = 0;  
    cfg.x_max = 4000; 
    cfg.y_min = 0; 
    cfg.y_max = 4000; 

`

@lovyan03
Copy link
Owner

lovyan03 commented Aug 1, 2023

配線を間違えていませんか

@cyberumut
Copy link
Author

配線を間違えていませんか

this module works with same wiring and pins but this dont using lovyan

https://github.com/nopnop2002/esp-idf-ili9340

@lovyan03
Copy link
Owner

lovyan03 commented Aug 1, 2023

使用しているライブラリのバージョンが古いのではありませんか

@cyberumut
Copy link
Author

使用しているライブラリのバージョンが古いのではありませんか

i m using 1.1.7

@lovyan03
Copy link
Owner

lovyan03 commented Aug 1, 2023

使い方を間違えていませんか

@cyberumut
Copy link
Author

使い方を間違えていませんか

tft display working but touch not work .

lcd.init(); // Initialize LovyanGFX
lcd.initDMA(); // Init DMA
lv_init(); // Initialize lvgl

@lovyan03
Copy link
Owner

lovyan03 commented Aug 1, 2023

サンプルプログラムを使って動作を試して見てください

@cyberumut
Copy link
Author

cyberumut commented Aug 1, 2023

im using this lib but lovyan and lvgl updated last version
https://github.com/sukesh-ak/ESP32-TUX/tree/37822a7b6dfcb67e278c78b2aa468817b6fa0bbe

@lovyan03
Copy link
Owner

lovyan03 commented Aug 1, 2023

簡単なプログラムを使って動作を確かめてください。
私は他人が作ったプログラムのチェックをする気はありません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants