Skip to content

Wrong function call #7

@Okayler

Description

@Okayler

Must correct this line of code in TouchButton.cpp

uint16_t x = map(p.y, TS_MINY, TS_MAXY, 0,320 );
uint16_t y = map(p.x, TS_MINX, TS_MAXX, 240, 0);

to

uint16_t x = map(p.y, TS_MINY, TS_MAXY, 320,0 );
uint16_t y = map(p.x, TS_MINX, TS_MAXX, 240, 0);

because my touch was inverted, maybe it is a problem of my screen .. idk

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