Have I mentioned my frustration with Python programmers not handling errors and leaving it to MicroPython to report what went wrong, often giving no clue as to what the program was trying to do which failed.
A simple button handler shouldn't cause this much grief, not even when it's handling multiple pins. Though yes, moving to 'libgpiod', Raspberry Pi providing a pre-installed RPi.GPIO package which doesn't work, doesn't help.
I would suggest completely junking the RetroFlag 'shutdown.py' script, replacing that with something which will more usefully reveal what obstacles may need to be overcome. It seems to me that what they have could be better written anyway.
I am happy to help you with that if you wish.
A simple button handler shouldn't cause this much grief, not even when it's handling multiple pins. Though yes, moving to 'libgpiod', Raspberry Pi providing a pre-installed RPi.GPIO package which doesn't work, doesn't help.
I would suggest completely junking the RetroFlag 'shutdown.py' script, replacing that with something which will more usefully reveal what obstacles may need to be overcome. It seems to me that what they have could be better written anyway.
I am happy to help you with that if you wish.
Statistics: Posted by hippy — Sat Jul 27, 2024 3:07 pm