Difference between revisions of "Component: Touch Screen (GT911) (Graphical Library)"
From Flowcode Help
Jump to navigationJump to search| Line 19: | Line 19: | ||
Library Version, Component Version, Date, Author, Info | Library Version, Component Version, Date, Author, Info | ||
6, 1.0, 26-07-24, BR, Removed ghost greay square connection line | 6, 1.0, 26-07-24, BR, Removed ghost greay square connection line | ||
| + | 7, 1.0, 29-08-24, BR, Fixed a problem where the I2C writes were corrupted | ||
| + | 8, 1.0, 29-08-24, BR, Added Orientation support | ||
| + | 9, 1.0, 29-08-24, BR, Improved Orientation support | ||
==Detailed description== | ==Detailed description== | ||
| Line 125: | Line 128: | ||
| width="90%" | Index | | width="90%" | Index | ||
|- | |- | ||
| − | | colspan="2" | Touch Index Range: 0 - | + | | colspan="2" | Touch Index Range: 0 - 4 |
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | ||
| Line 171: | Line 174: | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| + | |||
| + | |||
| + | ===SetOrientation=== | ||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetOrientation''' | ||
| + | |- | ||
| + | | colspan="2" | Allows the orientation to be overridden. | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" | Orientation | ||
| + | |- | ||
| + | | colspan="2" | Range: 0 - 3 | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Latest revision as of 14:43, 30 August 2024
| Author | Matrix Ltd |
| Version | 2.0 |
| Category | Graphical Library |
Contents
Touch Screen (GT911) component
Low level routines for controlling or interacting with the GT911 touch screen controller IC found on a lot of common capacitive touch screen products.
Version information
Library Version, Component Version, Date, Author, Info 6, 1.0, 26-07-24, BR, Removed ghost greay square connection line 7, 1.0, 29-08-24, BR, Fixed a problem where the I2C writes were corrupted 8, 1.0, 29-08-24, BR, Added Orientation support 9, 1.0, 29-08-24, BR, Improved Orientation support
Detailed description
No detailed description exists yet for this component
Examples
Macro reference
Initialise
| Initialise | |
| Activates the SPI peripheral and claims control over the I/O pins. Returns 1 if device found and communicating. | |
| Return | |
ReadCoord
ReadXBytes
| ReadXBytes | |
| Reads the specified number of bytes starting at the specified address | |
| Address | |
| Data | |
| NumBytes | |
| Return | |
SampleSensor
SetOrientation
| SetOrientation | |
| Allows the orientation to be overridden. | |
| Orientation | |
| Range: 0 - 3 | |
| Return | |
WriteXBytes
| WriteXBytes | |
| Writes the specified number of bytes starting at the specified address | |
| Address | |
| Data | |
| NumBytes | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TouchScreen_GT911.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TouchScreen_GT911.fcfx