Component: Touch Screen (XPT2046) (Force)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 2.0 |
Category | Force |
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 Pack
SENSORS
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
Downloadable macro reference
![]() |
ReadCoord |
Reads a coordinate returned from the Sample Sensor macro. Coordinate is scaled to the X/Y Pixel bounds specified. | |
![]() |
Coordinate |
0 = X, 1 = Y, 2 = Pressure | |
![]() |
Return |
![]() |
Initialise |
Activates the SPI peripheral and claims control over the I/O pins. | |
![]() |
Return |