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
touchRead breaking analogWrite?
Re: touchRead breaking analogWrite?
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.
- 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 83 guests