Page 2 of 2

Re: touchRead breaking analogWrite?

Posted: Tue Oct 03, 2023 6:45 pm
by lbernstone
If you attach that pin to a different function (ie OUTPUT), then it is removed from the touch device.
You can turn off touch with touch_pad_deinit() from touch_sensor_common.h

Re: touchRead breaking analogWrite?

Posted: Thu Dec 21, 2023 9:48 am
by ryeBread
I have encountered the exact same issue, trying the following workarounds:

- temporarily disable the touch functionaliy, using touch_pad_deinit()
- Make use of touch interrupts instead of touchRead()

I think the best solution to this issue would be to get a small separate touch module - so far I haven't found a feasible code workaround.