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

Method createEspLcdTouchConfig

Drivers/FT6x36/Source/Ft6x36Touch.cpp:16–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16esp_lcd_touch_config_t Ft6x36Touch::createEspLcdTouchConfig() {
17 return {
18 .x_max = configuration->xMax,
19 .y_max = configuration->yMax,
20 .rst_gpio_num = configuration->pinReset,
21 .int_gpio_num = configuration->pinInterrupt,
22 .levels = {
23 .reset = configuration->pinResetLevel,
24 .interrupt = configuration->pinInterruptLevel,
25 },
26 .flags = {
27 .swap_xy = configuration->swapXy,
28 .mirror_x = configuration->mirrorX,
29 .mirror_y = configuration->mirrorY,
30 },
31 .process_coordinates = nullptr,
32 .interrupt_callback = nullptr,
33 .user_data = nullptr,
34 .driver_data = nullptr
35 };
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected