Gpio on raspberrypi5

2024-06-15 raspi

Maybe gpiozero is the only option for Raspberry Pi 5?

import gpiozero, time

led = gpiozero.LED(4)
led.on()
time.sleep(1)
led.off()