Use of an I2C digital IO expander for UI buttons? #509
Replies: 3 comments 2 replies
-
I'm adding Zynthian-like hardware support to Circle, to be used here. (MCP23017, ILI9341, WM8731). Would PCF8574 be a candidate for the same strategy for /addon/gpio, with a generalized GPIO interface? |
Beta Was this translation helpful? Give feedback.
-
While this is cool, I think it may complicate the code and parts count. Unless there is a killer use case, I'd say this shouldn't go into the main branch, which I am trying(!) to keep lean. |
Beta Was this translation helpful? Give feedback.
-
For what it's worth this branch now supports the PCF8575 16-bit expander too. Let me know if this is of interest. Kevin |
Beta Was this translation helpful? Give feedback.
-
Here is an initial branch of code that will allow the use of a cheap PCF8574 8-way I2C digital IO expander for UI buttons.
https://github.com/diyelectromusic/MiniDexed/commits/i2cbuttons
What do we think - is this useful? It would mean that up to 8 buttons can be interfaced to the board without using up extra GPIO pins which might be in use for other things... or might just simplify the wiring in a build.
It's just an idea anyway.
As an aside, this is the same type of I2C IO expander that is used for the I2C version of the HD44780 display... and in the photo below you can see it working fine alongside a I2C SSD1306 display.
Kevin
Beta Was this translation helpful? Give feedback.
All reactions