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

Function createTouch

Devices/m5stack-core2/Source/devices/Display.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <Ili934xDisplay.h>
5
6std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
7 auto configuration = std::make_unique<Ft6x36Touch::Configuration>(
8 I2C_NUM_0,
9 LCD_HORIZONTAL_RESOLUTION,
10 LCD_VERTICAL_RESOLUTION,
11 false,
12 false,
13 false,
14 GPIO_NUM_NC,
15 GPIO_NUM_39
16 );
17
18 return std::make_shared<Ft6x36Touch>(std::move(configuration));
19}
20
21std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay() {
22 Ili934xDisplay::Configuration panel_configuration = {

Callers 1

createDisplayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected