Skip to content

Compile failure when using a touch screen with SPI bus. (e.g. XPT2046 SPI) #169

Closed
@tilordleo

Description

@tilordleo

When setting up the touch controller using SPI, a compile error occurs.
The location of the error is at lines 250-253 in "src/board/esp_panel_board_default_config.cpp" (based on 8861c38).
After making the following modifications, it works correctly.
I am using XTP2406.

8861c38
---------
250            .control_panel = ESP_PANEL_TOUCH_SPI_CONTROL_PANEL_CONFIG(
251                ESP_PANEL_BOARD_TOUCH_CONTROLLER, ESP_PANEL_BOARD_TOUCH_SPI_IO_CS
252            ),
253            .use_complete_io_config = true,

modification
--------------
250            .control_panel = BusSPI::ControlPanelFullConfig
251                ESP_PANEL_TOUCH_SPI_CONTROL_PANEL_CONFIG(
252                    ESP_PANEL_BOARD_TOUCH_CONTROLLER, ESP_PANEL_BOARD_TOUCH_SPI_IO_CS
253                ),
254            //.use_complete_io_config = true,

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions