Circuitpython: Rotary encoder support

Created on 25 Sep 2017  路  4Comments  路  Source: adafruit/circuitpython

SAMD51 has a peripheral for it.

enhancement

Most helpful comment

Anyone mind if I punt this to 4.0?

All 4 comments

Just wanted to make some notes here. I was skimming through Noridc documentation, and noticed that nRF52x also has rotary encoder as a peripheral. Not surprising, since it's M4 based.

They refer to it as "Quadrature decoder" or "QDEC". Here are links to the documentation:

The Arduino nRF52 Repo contains a RotaryEncoder library with both HW and SW implementations for this, just as a reference. If a common API is added at the HAL layer, it shouldn't be too complicated to add nRF52 support used the QDEC peripheral or GPIO.

making a note here that SAMD has very fixed pins for QDEC - so for that platform, at least, we should just DIY with a timer interrupt - an existing one would probably be fine as the checking code is very small

Anyone mind if I punt this to 4.0?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mlmcnees picture mlmcnees  路  5Comments

C47D picture C47D  路  9Comments

arturo182 picture arturo182  路  3Comments

jepler picture jepler  路  7Comments

tannewt picture tannewt  路  8Comments