GPIO Buttons do not work after update to new GPIO control #1225
-
Hi everybody, I just updated my RPi Phoniebox to the new version 2.2.
No button works actually and i am not able to identify the root cause. I just wanted to have the same functionality as before (see below). Since i use physical pull up resistors i deactivated them in the settings. I couldnt find any documentation to the new settings file, yet, so maybe you can help me with a few ideas regarding potential root causes. I restarted the service, checked the pin numbering, updated the installation of the phoniebox 3 times, ... A minor finding : within the gpio settings example files there are a few controls where it is stated enable: True other enableD: True. Does anybody else face similar issues with the new GPIO configuation? Thanks a lot for your help. here is the config of my old GPIO buttons.py file:
here is my new GPIO controls file [PlayPause] [Shutdown] [VolumeUp] [VolumeDown] [NextSong] [PrevSong] [Halt] [StatusLED] |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
I think you have set pull up explicitly to |
Beta Was this translation helpful? Give feedback.
-
Please note also that Pin is actually the GPIO number |
Beta Was this translation helpful? Give feedback.
-
thanks for the quick reply. Regarding the pull up, i dont really understand what you mean: What does the first line of the gpio-settings actually define?
thanks again! |
Beta Was this translation helpful? Give feedback.
-
Please set |
Beta Was this translation helpful? Give feedback.
-
Doesnt work.
|
Beta Was this translation helpful? Give feedback.
-
here some addition log as a result of the following statement It seems there is an issue with line 71 of the simple button script resulting finally in a stop of the gpio service.
|
Beta Was this translation helpful? Give feedback.
-
@veloxidSchweiz, can you help here? |
Beta Was this translation helpful? Give feedback.
-
I think the problem is that you use a pin twice, "PlayPause" and "Halt" are using both pin 21. |
Beta Was this translation helpful? Give feedback.
-
manchmal ist die Lösung so einfach...und man sucht nach den Fehlern im Code, dabei ist meine stumpfe Eingabe der Grund. |
Beta Was this translation helpful? Give feedback.
I think the problem is that you use a pin twice, "PlayPause" and "Halt" are using both pin 21.