mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-22 08:25:06 +00:00
To avoid keeping track of a list that maps board project names to board ids. Because of this change, we don't have to manually edit `boards.cmake` anymore when adding a new board.
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));
|
|
}
|