Skip to main content

Module touch_buttons

Module touch_buttons 

Source
Expand description

Touch→button emulation for the CoreS3 (FT6336U).

The CoreS3 has no physical front-panel buttons; a strip of the touch panel is split into three zones emulating the classic M5Stack Left/Center/Right buttons. A small state machine detects short taps (with multi-tap counting) and long presses and emits the same ButtonEvent as the Fire27’s physical buttons (crate::io::buttons), so the application maps input events in one place for both boards.

Structs§

TouchButtons
The emulated three-button strip. Construct once, then await next_event in a loop.
TouchButtonsConfig