Parse/Split Touch

From Visuino
Revision as of 06:34, 16 August 2025 by Visuino (talk | contribs) (Created page with "Image:TArduinoParseTouch.png == 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.,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:TArduinoParseTouch.png

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

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).