-
Notifications
You must be signed in to change notification settings - Fork 501
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
AndrewCapon
wants to merge
17
commits into
pimoroni:main
Choose a base branch
from
AndrewCapon:ili9341_xpt2046_drivers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Draws the frame of a rectangle.
Pico Display 2 examples ported.
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.