wrote a python program on pi4, it runs smoothly. When I run the same program on pi5 I get a error on line 17 which is : PIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
the error is: Traceback (most recent call last):
File "/home/pi5/pythonprograms/button.py", line 17, in <module>
GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
RuntimeError: Cannot determine SOC peripheral base address
is RPi.GPIO the same for both pi4 and pi5? I have a button connected to pi4 and pi5, program works on pi4 but not on pi5
thanks,
jerry
the error is: Traceback (most recent call last):
File "/home/pi5/pythonprograms/button.py", line 17, in <module>
GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
RuntimeError: Cannot determine SOC peripheral base address
is RPi.GPIO the same for both pi4 and pi5? I have a button connected to pi4 and pi5, program works on pi4 but not on pi5
thanks,
jerry
Statistics: Posted by Ockwig — Tue Dec 19, 2023 7:55 pm