Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate QTouch functionality #1141

Open
Ilidur opened this issue Sep 12, 2024 · 4 comments
Open

Integrate QTouch functionality #1141

Ilidur opened this issue Sep 12, 2024 · 4 comments

Comments

@Ilidur
Copy link

Ilidur commented Sep 12, 2024

Hello, the QTouch functionality for the ATTiny chips is not available in this library. I've manage to put together a functional but slightly hacked together implementation borrowing the work from https://github.com/xukangmin/TinyCore .

My target is the ATTiny1616 so I won't be able to test any suggestions on any other board. Would the project be interested in this contribution? The license of the original library by @xukangmin is MIT.

@hmeijdam
Copy link

The PTC peripheral has always been a mystery to me. A peripheral without any associated registers gives me a headache.

So is the TinyTouch you refer to really using the PTC peripheral or is it bitbanging touch functionality through ADC, Timer(s) and interrupts?

@Ilidur
Copy link
Author

Ilidur commented Sep 13, 2024 via email

@MX682X
Copy link
Contributor

MX682X commented Sep 26, 2024

The code on github has already a PTC library. However, I'm finishing up the DA support right now and made some small changes in the API, like changes to the argument order (it will be x, y instead of y, x for the pin bitmap, should only affect self-cap sensing).
I managed to make it even possible to support 8k chips, which have the peripheral, but lack the memory to support qTouch

@MX682X
Copy link
Contributor

MX682X commented Sep 28, 2024

The most up-to-date code can be found in the DxCore, no further changes to the API is to be expected. If there won't be any bug complains, it will be copied to this repository aswell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants