I have a NesPi 4 case (looks like a mini NES)
The power switch,reset switch and power LED are all connected to GPIO pins.
There is a script available on gethub/RetroFlag for it.
The SafeShutdown.py script is called from the rc.local file with sudo
The script was working fine with "Buster"
But stopped functioning after a new SD card with "Bookworm" 64bit was used.
The script now generates "runtime error: error waiting_for_edge"
I found something about lgpio and installed it and it did take care of that however it could not handle this...This gave me a "name" error apparently thinking "pull" was an intended name!
So I'm thinking pull_up_down is absent from rpi-lgpio.
I have another posting elsewhere about this issue in troubleshooting with another person that has the same problem
viewtopic.php?t=374013
How to proceed?
The power switch,reset switch and power LED are all connected to GPIO pins.
There is a script available on gethub/RetroFlag for it.
The SafeShutdown.py script is called from the rc.local file with sudo
The script was working fine with "Buster"
But stopped functioning after a new SD card with "Bookworm" 64bit was used.
The script now generates "runtime error: error waiting_for_edge"
Code:
GPIO.wait_for_edge(powerPin, GPIO.FALLING)
Code:
GPIO.setup(powerPin, GPIO.IN, pull_up_down = GPIO. PUD_UP)
So I'm thinking pull_up_down is absent from rpi-lgpio.
I have another posting elsewhere about this issue in troubleshooting with another person that has the same problem
viewtopic.php?t=374013
How to proceed?
Statistics: Posted by LPSeg13 — Wed Jul 24, 2024 2:30 am