| Author
|
Matrix Ltd
|
| Version
|
2.0
|
| Category
|
Graphical Library
|
Touch Screen (FT6X06) component
Low level routines for controlling or interacting with the FT6X06 touch screen controller IC found on a lot of common capacitive touch screen products. Also compatible with FT6x36 touch screen controller IC.
Version information
Library Version, Component Version, Date, Author, Info
11, 1.0, 26-07-24, BR, Removed ghost greay square connection line
Detailed description
No detailed description exists yet for this component
Examples
An example of how to sample read a capacitive touch display overlay using the component.
FT6X06 Demo
Macro reference
Initialise
|
Initialise
|
| Activates the SPI peripheral and claims control over the I/O pins.
|
- VOID
|
Return
|
ReadCoord
|
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
|
- BYTE
|
Index
|
| Touch Index Range: 0 - 1
|
- UINT
|
Return
|
SampleSensor
|
SampleSensor
|
| Reads the touch controller and returns true if there is currently a touch in progress. The touch coordinates can be read using the ReadCoord macro. Return 0 = No Touch, 1 = Single touch detected, 2 = Two touch points detected
|
- BYTE
|
Return
|
SetOrientation
|
SetOrientation
|
| Allows the orientation to be overridden.
|
- BYTE
|
Orientation
|
| Range: 0 - 3
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
LinkTo
|
|
|
|
Bus Settings
|
|
Channel
|
| Channel selection
|
|
Baud Select
|
| Baud rate option selector
|
|
Baud Rate
|
| Baud rate to be used
|
|
Stop Delay
|
| On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.
|
|
Connections
|
|
SDA
|
| Pin used for SDA (data signal)
|
|
SCL
|
| Pin used for SCL (clock signal)
|
|
Configuration
|
|
Apply Scaling
|
|
|
|
X Pixel
|
|
|
|
Y Pixel
|
|
|
|
Flip X
|
|
|
|
Flip Y
|
|
|
|
Simulation
|
|
Label
|
| Label used to identify the component on the panel.
|
|
Enable Interrupt
|
|
|
|
Interrupt Macro
|
| Macro called when the simulated display fires an interrupt.
|
|
Simulate Comms
|
| Allows the I2C communications to be simulated and piped through an API to real world hardware.
|
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TouchScreen_FT6X36.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TouchScreen_FT6X36.fcfx