espp/touch

1.1.3

Latest
uploaded 3 hours ago
Shared touch types and runtime interface component for ESP-IDF

Readme

# Touch Interface Component

[![Badge](https://components.espressif.com/components/espp/touch/badge.svg)](https://components.espressif.com/components/espp/touch)

The `touch` component defines shared touch data types and the runtime interface
used by ESPP touch controller drivers. It standardizes cached touch state,
single-point compatibility helpers, and runtime-polymorphic access for BSPs that
need to select between multiple touch controllers.

In addition to the `ITouchDevice` interface, the component provides the
type-erasure helpers `TouchDriverConcept`, `ITouchDriver`, `TouchDriverAdapter`,
and the `make_touch_driver()` factory. These let a BSP wrap any concrete driver
(e.g. `Gt911` or `St7123Touch`) in a single `std::shared_ptr<ITouchDriver>`
regardless of which controller is present at runtime.

## Example

The [example](./example) shows how to implement and consume the shared
`ITouchDevice` interface.

Links

Supports all targets

Maintainer

  • William Emfinger <waemfinger@gmail.com>
To add this component to your project, run:

idf.py add-dependency "espp/touch^1.1.3"

download archive

Stats

  • Archive size
    Archive size ~ 5.02 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

espp/touch version: 1.1.3
|