mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Implemented Elecrow CrowPanel Basic 2.8" - Change default "invert" setting for ILI934x driver from `true` to `false` - Created `Xpt2046` driver subproject - Refactored unPhone to use new `Xpt2046` driver subproject
16 lines
365 B
C++
16 lines
365 B
C++
#include "UnPhoneTouch.h"
|
|
#include "UnPhoneDisplayConstants.h"
|
|
|
|
#include <Tactility/Log.h>
|
|
|
|
std::shared_ptr<Xpt2046Touch> createTouch() {
|
|
auto configuration = std::make_unique<Xpt2046Touch::Configuration>(
|
|
UNPHONE_LCD_SPI_HOST,
|
|
GPIO_NUM_38,
|
|
320,
|
|
480
|
|
);
|
|
|
|
return std::make_shared<Xpt2046Touch>(std::move(configuration));
|
|
}
|