raelik

Results 15 comments of raelik

Presumably you meant an I²C I/O expander, I²S is for PCM audio. It's definitely a good idea, way too many GPIOs would be required. Looks like the MCP23017 and the...

Ok.... so. I did some digging, and apparently, the MT-32 doesn't use a rotary encoder at all. It's far stranger than that. It uses a 50k pot... which connects DIRECTLY...

> I have a MCP23017 on my bench now, I'm slowly writing a driver for it when I get time in between work (and #21 has distracted me from working...

> I've been evaluating some MCP23017 devices - talking to them is easy and reading their pin states is easy, no problems there. > The challenge is reading encoders reliably,...

@dwhinham I was trying it first in Python, but when I realized I probably needed a thread to handle the interrupt, I switched to C++. As far as I could...

@dwhinham That article is actually quite helpful, and I think the source of some of the issues I was having was improperly dealing with the nature of how the rotary...

@dwhinham I should mention that I was using libsoc's C++ bindings to do the interrupt handling, as it uses std::thread when spawning the ISR, and I used https://github.com/dehavenm/MCP23017 to interface...

@dwhinham that probably makes sense, since you only need 3 pins for the encoder (assuming it has a button)

@jopdorp In theory, yes, but that would mean you can't press multiple buttons at the same time.

I had just opened another PR similar to this (it simply used a regular statement when no parameters are given), but I closed it and figured I'd just add to...