martin2250 / ADCTouch

touch sensing library for Arduino
MIT License
100 stars 24 forks source link

ATSAMD51 supported #13

Open s-light opened 1 year ago

s-light commented 1 year ago

Can this work with the ATSAMD51 chips? Vor are ther alternative libs for this?

I landed her from a search and this question: https://arduino.stackexchange.com/questions/43663/built-in-capacitive-touch-detection-with-samd21-development-board-arduino-zero#43694

martin2250 commented 1 year ago

Hi Stefan, It isn't obvious from the schematics in the SAMD51 datasheet, but I give it pretty good chances that of working. There is no option to connect the positive ADC input to GND, but you could work around that by setting the ADC MUX to connect to the output of DAC0. If you can make it work, I'll gladly merge the PR :)

Cheers!