Hi, I bought the case SUPER KUMA 9000, which resembles SNES with functional ON/OFF and RESET buttons using GPIO and activated with a script.
Buttons work fine after running the script, however I'm not able to make the LED stay on. It turns on while starting the PI, but after Batocera starts, the led turns off.
I tried this script in RECALBOX and works well, so I'm thinking that maybe the issue is related with PIN numberings.
Does anyone know if the GPIO PIN have different numbers in RECALBOX and BATOCERA?
As a reference, this is the script provided that works on RECALBOX:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD) #Use the same layout as the pins
GPIO.setup(LED, GPIO.OUT) #LED Output
GPIO.setup(POWER, GPIO.IN) #set pin as input
GPIO.setup(RESET, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(CHECK_PCB, GPIO.IN, pull_up_down=GPIO.PUD_UP)
if status == 0:
if status == 1:
if(GPIO.input(POWER) == GPIO.HIGH):
os.system("shutdown -h now")
if(GPIO.input(RESET) == GPIO.LOW):