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

TouchTest example to use polling instead of interrupt #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ImpulseAdventure
Copy link

First off, great work on the library Paul!

Change

  • Modified the default constructor in TouchTest.ino to use polling mode

Description

  • TouchTestIRQ.ino demonstrates the use of the interrupt event APIs
  • I believe TouchTest.ino was originally intended to demonstrate the use of the polling APIs
  • However, the current TouchTest.ino invokes the TIRQ_PIN constructor (!=255) which appears to initiate the ISR handling mode
  • The existing default may potentially introduce confusion for some users, hence the proposal to adjust the constructor mode

thanks

To differentiate from the TouchTestIRQ example, it seems like this example should use the non-IRQ constructor mode
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

Successfully merging this pull request may close these issues.

1 participant