Xinyuan-LilyGO / T-HMI

46 stars 15 forks source link

Constant ghost touches with touch example but not with test firmware #28

Open Dakkaron opened 2 months ago

Dakkaron commented 2 months ago

When I run the touch and touch_calibration examples (as is, no modifications) the tests show constant random touches.

When I upload the test firmware, all works fine.

What could be the problem?

I run both off USB with no battery or peripherals attached.

lewisxhe commented 2 months ago

Erase all flash, re-run the example, and recalibrate

Dakkaron commented 2 months ago

I did, but that didn't help.

I kinda worked around it by modifying the library.

The ghost touches always have a Z of 0 or 65535 (probably -1, but the variable is uint16_t). Real touches always have other values. So if I filter that out, I don't have ghost touches.