![]() |
GPIO management change with the new Rapsberry Pi5 - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18) +--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21) +--- Thread: GPIO management change with the new Rapsberry Pi5 (/showthread.php?tid=7013) |
GPIO management change with the new Rapsberry Pi5 - pkdick - 10-20-2024 Hello Tim, While trying to compile some Python scripts with pyinstaller, I discovered that, due to hardware changes, the new Rapsberry Pi5 that I chose for Moode, was no more compatible with the RPI.GPIO library (https://forums.raspberrypi.com/viewtopic.php?t=372507 or https://waldorf.waveform.org.uk/2022/the-one-where-dave-breaks-stuff.html). I was wondering whether or not you were aware about that change ? Best regards RE: GPIO management change with the new Rapsberry Pi5 - TheOldPresbyope - 10-20-2024 (10-20-2024, 10:17 AM)pkdick Wrote: Hello Tim, A quick search of the packages installed on a stock moOde 9.1.3 player will show you that RPi.GPIO is not preset but the suggested alternatives are For example Code: rho@sunroom:~ $ sudo apt list --installed|grep -i gpio So many HowTos on the InterWeb about the Raspberry Pi are out of date and the topic of gpio usage may be the worst offender. Regards, Kent ETA - To be explicit, the name of the Debian package for RPi.GPIO is python3-rpi.gpio which is not present in the list above. RE: GPIO management change with the new Rapsberry Pi5 - Tim Curtis - 10-20-2024 The compatibility shim is installed Code: pi@moode9:~ $ dpkg -l | grep lgpio Script does "import RPi.GPIO as GPIO" and seems to run ok Code: pi@moode9:~ $ sudo /var/www/daemon/gpio_buttons.py RE: GPIO management change with the new Rapsberry Pi5 - pkdick - 10-20-2024 Hello Tim and Ken, I apologize about my question that could appear offending to you: that was not my purpose at all. Thank you for this clear explanation . Best regards RE: GPIO management change with the new Rapsberry Pi5 - Tim Curtis - 10-20-2024 (10-20-2024, 12:46 PM)pkdick Wrote: Hello Tim and Ken, Your post was perfectly reasonable. RE: GPIO management change with the new Rapsberry Pi5 - TheOldPresbyope - 10-20-2024 (10-20-2024, 12:52 PM)Tim Curtis Wrote:(10-20-2024, 12:46 PM)pkdick Wrote: Hello Tim and Ken, Absolutely. Sorry for the abruptness of my reply. A bad night and lack of morning coffee does that to me ![]() Regards, Kent |