MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / createTouch

Function createTouch

Devices/unphone/Source/devices/Touch.cpp:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "Touch.h"
2
3std::shared_ptr<Xpt2046Touch> createTouch() {
4 auto configuration = std::make_unique<Xpt2046Touch::Configuration>(
5 SPI2_HOST,
6 GPIO_NUM_38,
7 320,
8 480
9 );
10
11 return std::make_shared<Xpt2046Touch>(std::move(configuration));
12}

Callers 1

getTouchDeviceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected