touchRead breaking analogWrite?

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: touchRead breaking analogWrite?

Postby lbernstone » Tue Oct 03, 2023 6:45 pm

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

ryeBread
Posts: 1
Joined: Thu Dec 21, 2023 9:43 am

Re: touchRead breaking analogWrite?

Postby ryeBread » Thu Dec 21, 2023 9:48 am

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.

Who is online

Users browsing this forum: No registered users and 78 guests