Component: Touch Screen (Resistive) (Graphical Library): Difference between revisions
Appearance
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| Line 206: | Line 206: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | Connections | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
| Line 240: | Line 240: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | Configuration | | width="90%" class="mtx-class-propfolder" | Configuration | ||
|- | |- | ||
| Line 279: | Line 279: | ||
| colspan="2" | Microsecond delay in between each of the averaged samples. | | colspan="2" | Microsecond delay in between each of the averaged samples. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | ADC options | | width="90%" class="mtx-class-propfolder" | ADC options | ||
|- | |- | ||
| Line 298: | Line 298: | ||
| colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | | colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | Simulation | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
Latest revision as of 14:37, 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