Quantcast
Viewing all articles
Browse latest Browse all 5299

Beginners • Re: Raspberry Pi 4 to 5 GPIO issue?

RPi.GPIO does not work on Pi 5.

A great many things that run on Pi 4 will not run on Pi 5.

There were quite a few breaking changes from the Pi 4 to the Pi 5.

Pretty much anything coded in Python to interface withe the Pi's IO header and it worked on the Pi 4, it will not work on the Pi 5 (few exceptions to that may exist, but you can use this as a rule of thumb).

You can try to modify your program to use GPIOZERO instead: https://gpiozero.readthedocs.io/en/stable/

Also, when posting code, put Code tags around it. Python code uses spaces as a delimiter and scope, if you don't use he code tags it not only looks awful to look at, but also can be very hard to read as it's difficult to see what should be indented and what should not.

Code:

 code goes here 
Image may be NSFW.
Clik here to view.
2024-08-23_16-41-39.jpg

Statistics: Posted by memjr — Fri Aug 23, 2024 8:36 pm



Viewing all articles
Browse latest Browse all 5299

Trending Articles