Add touch gesture support and LilyGo T5 S3 board
Implements bottom-edge swipe-up gesture detection and delayed touch-select with tracking state. Adds isTouchTapCandidate() to distinguish taps from swipes. Includes LilyGo T5 S3 board configuration with USB CDC logging transport for boards where Serial operator bool reports false incorrectly.
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
#include <HalStorage.h>
|
||||
#include <HalSystem.h>
|
||||
#include <HalTiltSensor.h>
|
||||
|
||||
#if defined(FREEINK_DEVICE_LILYGO) && FREEINK_DEVICE_LILYGO
|
||||
#include <BoardT5S3.h>
|
||||
#endif
|
||||
#include <I18n.h>
|
||||
#include <Logging.h>
|
||||
#include <SPI.h>
|
||||
@@ -367,6 +371,12 @@ void setup() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(FREEINK_DEVICE_LILYGO) && FREEINK_DEVICE_LILYGO
|
||||
// LilyGo T5 S3 board-support owns the shared I2C setup plus non-reader
|
||||
// peripherals that can otherwise contend with SD/display pins.
|
||||
BoardT5S3::begin();
|
||||
#endif
|
||||
|
||||
HalSystem::begin();
|
||||
|
||||
// Read-and-clear so a panic later in setup() doesn't loop into silent reboot.
|
||||
|
||||
Reference in New Issue
Block a user