-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPIO ports for buttons and rotory seems to conflict #325
Comments
Yes you're right. I messed up the GPIO PIN/BCM Encoding in another post.
|
Aren't there enough GPIO pins so that the button-script and the rotary-script could coexist? I would like it if they both get started by default and the docs just say, "connect the rotray to pin x,y,z or a button to xx,yy or both if you want, it will just work..." |
Probable yes but because everyone uses other hardware it will be difficult to build one fits all script. |
These conflicts can not be avoided, because of the hardware requirements depending in what Phonieboxers might add to the mix. But possibly we could merge the „recommended“ hardware including rotary and hifiberry. Would that be possible? Could somebody post or commit such a script? |
But Phoniebox is a pretty specialized project. Most users will only have a subset of prev/next/pause, shutdown, sleep timer, folder prev/next, rotary volume, button volume, mute. That's what, 15 pins or so? The Raspberry3 has > 20 if I remember correctly so there would be plenty left for "special purposes". Of course adjusting the python scripts it easy but it would be even cooler if one could just plug a button at the right point and have the functionallity without having to remember to adjust the mapping at every update. It would aid for the slogan "no soldering needed and no programming knowledge needed" |
but sometimes you have special hats what blocks several pins. I don't know I I should build it that it fits for everyone. In my opinion impossible. On every update you don't need to change gpio-buttons.py because it will not be overwritten. |
Ok, after finishing my first Phoniebox I now see that all the tiny cables need to be put in order and that this is more important than a fixed pin mapping. I closed this request. Thanks for maintaining the project! |
The https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Audio-RotaryKnobVolume uses GPIO 5, GPIO 13 and GPIO 16.
Then there is https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/master/misc/sampleconfigs/gpio-buttons.py.sample which uses among others:
I now fear that both scripts try to initialize and register callback functions on the same GPIO 13/16.
The text was updated successfully, but these errors were encountered: