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

Method createEspLcdTouchConfig

Drivers/XPT2046/Source/Xpt2046Touch.cpp:37–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37esp_lcd_touch_config_t Xpt2046Touch::createEspLcdTouchConfig() {
38 return {
39 .x_max = configuration->xMax,
40 .y_max = configuration->yMax,
41 .rst_gpio_num = GPIO_NUM_NC,
42 .int_gpio_num = GPIO_NUM_NC,
43 .levels = {
44 .reset = 0,
45 .interrupt = 0,
46 },
47 .flags = {
48 .swap_xy = configuration->swapXy,
49 .mirror_x = configuration->mirrorX,
50 .mirror_y = configuration->mirrorY,
51 },
52 .process_coordinates = processCoordinates,
53 .interrupt_callback = nullptr,
54 .user_data = configuration.get(),
55 .driver_data = nullptr
56 };
57}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected