mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- `TT_LOG_*` macros are replaced by `Logger` via `#include<Tactility/Logger.h>` - Changed default timezone to Europe/Amsterdam - Fix for logic bug in unPhone hardware - Fix for init/deinit in DRV2605 driver - Other fixes - Removed optimization that broke unPhone (disabled the moving of heap-related functions to flash)
13 lines
282 B
C++
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));
|
|
}
|