Component: Touch Screen (Resistive) (Graphical Library): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 62: | Line 62: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Calibrate''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Calibrate''' | ||
|- | |- | ||
| Line 86: | Line 86: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCalibrationValues''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCalibrationValues''' | ||
|- | |- | ||
| Line 105: | Line 105: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCoord''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCoord''' | ||
|- | |- | ||
| Line 124: | Line 124: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IsTouched''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IsTouched''' | ||
|- | |- | ||
| Line 138: | Line 138: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetCalibrationValues''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetCalibrationValues''' | ||
|- | |- | ||
| Line 177: | Line 177: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetOrientation''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetOrientation''' | ||
|- | |- | ||
Revision as of 14:17, 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