Skip to content

readRawData always returns true & setDisplayOnOff doesn't turn off the LCD #174

Open
@dinisfc

Description

@dinisfc

I'm planning on having a display idle with the LCD panel off and have the touch panel always waiting for touch, once touch is detected the LCD comes back on.

I'm trying to use readRawData to detect touch, regardless of location, strength or number of touch points. When using readRawData, it always returns true, even if there's no touch detected and for any value for the timeout, it returns instantly or almost instantly.

At the same time, I'm trying to turn on and off the LCD using setDisplayOnOff but it doesn't seem to do anything, I've tried using enable_on as bool and as an int but the LCD never turns off.

Before, using version 0.2.2, both displayOn and displayOff worked no problem, and readRawData worked too.
I can also confirm that the program is not getting stuck on any of those functions, for any possible reason, as the program continues running.

I'm sure there's better ways of doing this, but using readRawData seems the simplest since I basically only need a toggle of there being touch or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions