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

Ili9341 xpt2046 drivers #596

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

AndrewCapon
Copy link
Contributor

This PR is on top of #593 so includes that as well.

Added drivers for ili9341 and xpt2046.

Added examples from Pico Display 2, using touchscreen instead of buttons.

Major change, the registers used before were incorrect, the x and y were swapped, the code I cribbed them from was wrong!
Also implemented pressure (Z) as some screens give wonky results with light pressure. Pressure rejection to touch is on line 73 of xpt2046.cpp, currently set at 50% of max pressure.
We also now have a pressure value for points (now TouchPoints), from 0-100 where 100 is max pressure.
Add TouchPoint struct.
Add calibration for Z.
@ZodiusInfuser ZodiusInfuser added [- pico graphics library -] needs discussion This issue or request is in need of further discussion c++ This issue or request relates to C++ code labels Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[- pico graphics library -] c++ This issue or request relates to C++ code needs discussion This issue or request is in need of further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants