Skip to content

touchscreen.begin(touchscreenSPI); issue #267

Open
@hiibrarahmad

Description

@hiibrarahmad

src/main.cpp: In function 'void setup()':
src/main.cpp:21:35: error: no matching function for call to 'XPT2046_Touchscreen::begin(SPIClass&)'
touchscreen.begin(touchscreenSPI);
^
In file included from src/main.cpp:3:
.pio/libdeps/esp-wrover-kit/XPT2046_Touchscreen/XPT2046_Touchscreen.h:46:7: note: candidate: 'bool XPT2046_Touchscreen::begin()'
bool begin();
^~~~~
.pio/libdeps/esp-wrover-kit/XPT2046_Touchscreen/XPT2046_Touchscreen.h:46:7: note: candidate expects 0 arguments, 1 provided
*** [.pio\build\esp-wrover-kit\src\main.cpp.o] Error 1

i just run the example code and it give this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions