Difference between revisions of "Component: Touch Screen (XPT2046) (Graphical Library)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 2.0 |- | width="20%" style="color:gray...") |
|||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 38: | Line 40: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 59: | Line 63: | ||
{{Fcfile|GLCD7_Touch.fcfx|GLCD 7 Touch}} | {{Fcfile|GLCD7_Touch.fcfx|GLCD 7 Touch}} | ||
− | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
Revision as of 14:13, 20 January 2023
Author | Matrix Ltd |
Version | 2.0 |
Category | Graphical Library |
Contents
Touch Screen (XPT2046) component
Low level routines for controlling or interacting with the XPT2046 touch screen controller IC found on a lot of common low cost resistive touch screen products.
Component Source Code
Please click here for the component source code: FC_Comp_Source_TouchScreen_XPT2046.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example using the XPT2046 touchscreen driver IC with a 4.3" TFT Display using the SSD1963 Graphical LCD Controller. GLCD 4.3 Touch Example using the XPT2046 touchscreen driver IC with a 7" TFT Display using the SSD1963 Graphical LCD Controller. GLCD 7 Touch
Macro reference
ReadCoord | |
Reads a coordinate returned from the Sample Sensor macro. Coordinate is scaled to the X/Y Pixel bounds specified. | |
- BYTE | Coordinate |
0 = X, 1 = Y, 2 = Pressure | |
- UINT | Return |
Initialise | |
Activates the SPI peripheral and claims control over the I/O pins. | |
- VOID | Return |