Ken Van Hoeylandt c4f0c134b2 Updates
2026-01-05 21:25:56 +01:00

13 lines
282 B
C++

#include "Touch.h"
std::shared_ptr<Xpt2046Touch> createTouch() {
auto configuration = std::make_unique<Xpt2046Touch::Configuration>(
SPI2_HOST,
GPIO_NUM_38,
320,
480
);
return std::make_shared<Xpt2046Touch>(std::move(configuration));
}