mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-17 23:55:04 +00:00
Added the newest variant to the tab5, St7121. Fixed variant detection reliability Fixed tab5 camera WHO_AM_I failing sometimes Fixed tab5 keyboard live rotation on boot and after stopping/starting lvgl
13 lines
836 B
C
13 lines
836 B
C
#pragma once
|
|
|
|
// Starts/stops the periodic keyboard-accessory hot-plug poll: reapplies register configuration on
|
|
// reattach (see tab5_keyboard_reinit()) and switches LVGL to landscape while attached, restoring
|
|
// the prior rotation on detach - unless the user changed it manually since attaching, in which
|
|
// case their choice is respected. Also re-announces the current attach state after LVGL itself
|
|
// restarts (e.g. an app that took over the display for direct rendering, stopping and letting
|
|
// LVGL rebind), since that's a distinct event from the keyboard physically attaching/detaching -
|
|
// the accessory may never have moved, but the rotation override it applied may have been reset in
|
|
// the meantime. Called from module.cpp's start()/stop().
|
|
void tab5_keyboard_attach_detect_start();
|
|
void tab5_keyboard_attach_detect_stop();
|