Files
wadamesh/variants
Confituurke 3ccd27c80a feat(sensecap-indicator): FT6336 touch on the shared expander bus
The FT6336 sits at 0x48 on the same SDA39/SCL40 bus as the TCA9535,
and its reset is expander pin P0.7, so the driver takes
IndicatorIo::BusLock for every register write + read and pulses reset
through the expander. It implements the heltecV4CapTouch* interface
the touch UI already polls, with the same tap and swipe thresholds as
the Wio Tracker L2, so UITask needs no new touch path.

The controller reports both axes mirrored against the panel, so points
are mapped as 479 - raw and clamped; the raw point is kept for the
diagnostic overlay.

UITask calls begin on every loop pass until it succeeds. Pulsing reset
and waiting 300 ms on each call would starve loopTask when the
controller does not answer, so reset runs on the first probe only,
later probes run at most every 2 s, and the failure is logged once.
The chip and vendor ids are logged, not checked, so a compatible
controller with another id still works.

Signed-off-by: Confituurke <9595028+Confituurke@users.noreply.github.com>
2026-10-17 22:39:27 +02:00
..
2026-10-14 11:37:08 -06:00