Comments (2)
Hi Dave,
Unfortunately, I can't see a way to use a GPIO extender with this library. Internally, this Rotary library uses the MicroPython Pin class which requires direct access to the microprocessor pins. As far as I know there is no way to map a Pin class object to the GPIO extender library. It's a similar problem that is discussed in this issue #24. I suggest trying to find an encoder library that uses polling techniques, rather than the interrupt techniques that are used in this library. A library that uses polling can be adapted to poll pin values from the GPIO extender. The downside to polling approach is a much slower response when the encoder is turned. Clicks will be missed if the encoder is turned too quickly.
Hope this helps!
Mike
from micropython-rotary.
Hi Mike,
I thought as much. Speed isn't too much of an issue for me so I'll see if I can find a polling library.
Thanks again for your work here...it allowed me to have fun using rotary encoders for the first time!!
Best wishes
Dave
from micropython-rotary.
Related Issues (20)
- Skipping one step when reversing direction HOT 24
- Works on Raspberry Pi Pico HOT 7
- Listeners lost when instantiating multiple RotaryIRQs
- Counter get stuck on "schedule queue full" error HOT 1
- Listener is being skipped sometimes HOT 2
- Is the transition table wrong? HOT 4
- Arguments to callback functions HOT 3
- Much appreciated! HOT 2
- How about including push button handling? HOT 1
- Starting value separate from min value
- tested with EC11 encoder HOT 1
- Use multiple rotary encoders with SN74HC165 as input expander HOT 2
- Locks up if a thread is run on core1: Pico Pi W HOT 20
- RFC: Design concept HOT 2
- two encodes simultaneous on one esp32, one or other but not both work
- Cannot install library into Thonny HOT 1
- Thonny issue
- TypeError: function takes 8 positional arguments but 7 were given HOT 2
- uasyncio support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-rotary.