Encoder Library with PCNT as Frequency Counter
k7ilo opened this issue · 0 comments
k7ilo commented
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