Skip to content

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.

2 participants