Component: Touch Screen (Resistive) (Graphical Library): Difference between revisions
Appearance
Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray..." |
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
||
| Line 60: | Line 60: | ||
===Calibrate=== | ===Calibrate=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 84: | Line 84: | ||
===GetCalibrationValues=== | ===GetCalibrationValues=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 103: | Line 103: | ||
===GetCoord=== | ===GetCoord=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 122: | Line 122: | ||
===IsTouched=== | ===IsTouched=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 136: | Line 136: | ||
===SetCalibrationValues=== | ===SetCalibrationValues=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 175: | Line 175: | ||
===SetOrientation=== | ===SetOrientation=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| Line 195: | Line 195: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
Revision as of 14:15, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Graphical Library |
Touch Screen (Resistive) component
Routines for reading a simple resistive touch screen directly without interface IC.
Version information
Library Version, Component Version, Date, Author, Info 9, 1.0, 26-07-24, BR, Renamed component to match other touchscreen components
Detailed description
No detailed description exists yet for this component
Examples
An example of how to calibrate and read a resistive touch display overlay using the component.
Calibration is stored into EEPROM memory so as to avoid having to repeat it on every power up.
Macro reference
Calibrate
GetCalibrationValues
GetCoord
| GetCoord | |
| Gets the coordinate from the last valid touch event | |
| Index | |
| 0=X, 1=Y | |
| Return | |
IsTouched
| IsTouched | |
| Check to see if display has been touched | |
| Return | |
SetCalibrationValues
SetOrientation
| SetOrientation | |
| Sets the orientation of the touchscreen to match the orientation of the graphical display. | |
| Orientation | |
| Range: 0-3 default = 0 | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TouchScreen_Resistive.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TouchScreen_Resistive.fcfx