Skip to content

Conversation

@SergioGasquez
Copy link
Member

Adds initial support for PCNT and the pcnt_encoder example.

I couldn't fully test the example as I don't have a rotatory encoder, but I was able to see some prints by shorting the pins. If someone could properly test it, it would be appreciated!

@jessebraham jessebraham changed the title Initial support for PCTN in ESP32-H2 Initial support for PCNT in ESP32-H2 May 18, 2023
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Was able to test this with a rotary encoder - works fine

@SergioGasquez SergioGasquez merged commit 2c2bb25 into esp-rs:main May 19, 2023
@SergioGasquez SergioGasquez deleted the feature/esp32h2-pcnt branch May 19, 2023 07:27
SergioGasquez added a commit to SergioGasquez/esp-hal that referenced this pull request Jun 9, 2023
* feat: ✨ Enable PCNT peripheral

* feat: ✨ Rename PCNT GPIOs

* feat: ✨ Add pcnt_encoder example

* build: ⬆️ Update esp-pacs revision

* docs: 📝 Update changelog
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.

2 participants