Skip to content

Encoder Library with PCNT as Frequency Counter #86

@k7ilo

Description

@k7ilo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions