#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));
}
