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

Encoder Library with PCNT as Frequency Counter #86

Open
k7ilo opened this issue Jan 11, 2023 · 0 comments
Open

Encoder Library with PCNT as Frequency Counter #86

k7ilo opened this issue Jan 11, 2023 · 0 comments

Comments

@k7ilo
Copy link

k7ilo commented Jan 11, 2023

Im sure this can work but I am having issues using this package with my project that is already using PCNT as a Frequency counter. If I leave my Frequency cournters instance of PCNT set with Unit being 0 and Channel being 0, after adding the encoder library, the Frequency counter stops working and I get a random set of numbers being displayed in the serial monitor not affected by encoder input. When I change the Frequency counters Unit to 1 and Channel still at 0, I do not get the random numbers, the encoder works with the demo sketch but my Frequency counter still does not work. How do, or is it possible to have 2 instances of PCNT running on the ESP32 for both purposes?
Thanks

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

1 participant