mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 03:13:14 +00:00
15 lines
310 B
C++
15 lines
310 B
C++
#include "Touch.h"
|
|
|
|
#include <Tactility/Log.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));
|
|
}
|