Files
klubhaus-doorbell/TouchDriver.h
2026-02-16 19:08:47 -08:00

22 lines
815 B
C++

#pragma once
#include "BoardConfig.h"
// ═══════════════════════════════════════════════════════════════════
// Touch driver abstraction
//
// XPT2046: integrated in TFT_eSPI — DisplayManager calls
// _tft.getTouch() / _tft.setTouch() directly inside
// #if USE_TOUCH_XPT2046 blocks.
//
// GT911: separate I2C controller — namespace below.
// ═══════════════════════════════════════════════════════════════════
#if USE_TOUCH_GT911
namespace TouchDriver {
void begin();
bool read(uint16_t &x, uint16_t &y);
}
#endif