Parse/Split Touch
Summary
Splits a touch input into its individual components, such as coordinates, press state, and metadata.
Description
The Parse/Split Touch component takes a touch input and extracts its details into separate outputs for easier processing. This includes the X/Y position, whether the touch is pressed, its size, index, and unique identifier (ID).
It is useful for handling raw multi-touch input from touch controllers (e.g., GT911) and mapping them to higher-level logic.
Diagram:
Categories
- File:TArduinoTouchCategory.png Category Touch – Touchscreen controllers and processors
Properties
- Enabled – Enables or disables the component.
Pins
Input Pins
- In – Touch input to be parsed.
Output Pins
- X – Integer; X coordinate of the touch.
- Y – Integer; Y coordinate of the touch.
- Pressed – Boolean; indicates if the touch is active/pressed.
- Size – Integer; touch size or pressure level.
- Empty – Clock; triggers when no touch is detected.
- Count – Integer; total number of touches currently detected.
- Index – Integer; index of the current touch (useful for multi-touch parsing).
- ID – Integer; unique identifier of the touch (helps track the same finger across frames).