OK, it looks like the author of wiringPi has hit a wall and declared wiringPi EOL while acknowledging that there are issues working with the Pi v4.
When I run watch gpio readall I donāt see changes when buttons are pushed, so this is definitely an issue within wiringPi. (and this was even with his binary-only 2.52 package which has no corresponding source release )
Iāll look for forks on github to see if anyone is maintaining a fork which works with v4. Maybe longer term this is a chance to move away from wiringPiās pin numbering - its pretty confusing
Itās quite strange your case. Iāve do some research, but i canāt find any reference about pin differences at boot up. Of course, the RBPi4 GPIO is much more configurable and almost every pin have several modes (GPIO, I2C, SPI, UART, etc.) Perhaps some problem with the wiringpi library ā¦ i donāt know ā¦
So, maybe it is time to upgrade our v1 zyntians to v2 or v3. Maybe It would be safer for the project overall. @jofemodo, what should i order to update my old construction?
Would it be better to switch over to i2c encoders? I love the simplicity of these, plus the added RGB. I donāt need a MIDI DIN, they would eliminate the need for a custom MCP23017 board like I have now in my DIY Zynth.
Yeah, Iām just trying to save money and time, and I would prefer to have an all-in-one board.
If it is declared that prototype setups and Pi4B are incompatible then Iād upgrade and move on.
The fact that wiringPi is unmaintained and its GPIO support is broken on the 4B means there is a risk that i2c support might break for some future raspberry pi hardware release
Maybe, but his behavior suggests that he wonāt make the source available for the fixes to add Pi4B support (which still donāt fix my problem anyway)
OK, Iām comfortable we can fix this. My fork[1] now has a fix for the /dev/mem peripheral base address. My current problem is that setting pull-up is having no effect when done through wiringPi. When I do it through some other tool like raspi-gpio then the buttons start working.
Maybe we can pull this repo[1] into the zynthian github to maintain our fixes until some central replacement emerges?
I like those I2C knobs as well.
Do you know if the price is per knob or for 9.
I think for one.
What is the maximum number of cascading knobs?
We should really try to get those integrated, esp if they offer more than 9.
From what I can see, those I2C encoder boards are USD6.90 each, plus the cost of the encoder, and each one can be assigned a different 7-bit address by soldering jumpers.
So, itās theoretically possible to connect 128 of them on a single I2C bus, though I2C capacitance limit might reduce the actual number.