I’m currently working through the lessons with my son Alex. We have a Raspberry Pi 5 and the Raspberry Pi OS was pre-loaded onto the chip. We have built the circuit in video 4 and we are running the code as instructed. After line GPIO.setup (11,GPIO.OUT) we get the Runtime Error: No access to /dev/mem. Try running as root!
Please help
Thanks
The video tutorials are not compatible with PI5.
The library used by PI5 is the GPIO Zero library
The PI4/PI3 uses the RPi.GPIO library.
If you are using PI5, it is recommended to follow this tutorial link to use the module:
https://docs.sunfounder.com/projects/raphael-kit/en/latest/python_pi5/play_with_python_pi5.html#