enable touchscreen

This commit is contained in:
Manuel
2025-10-28 21:46:15 +01:00
parent 70f25c8e79
commit 870b76817f

View File

@@ -25,9 +25,8 @@ bool readTouch(int16_t *x, int16_t *y)
void lateInitVariant()
{
bbct.init(GT911_PIN_SDA, GT911_PIN_SCL, GT911_PIN_RST, GT911_PIN_INT);
bbct.setOrientation(90, EPD_WIDTH, EPD_HEIGHT);
// FIXME: crashes!
// touchScreenImpl1 = new TouchScreenImpl1(EPD_WIDTH, EPD_HEIGHT, readTouch);
// touchScreenImpl1->init();
bbct.setOrientation(0, EPD_WIDTH, EPD_HEIGHT);
touchScreenImpl1 = new TouchScreenImpl1(EPD_WIDTH, EPD_HEIGHT, readTouch);
touchScreenImpl1->init();
}
#endif