Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4104

Beginners • Raspberry Pi 4 Bookworm - GPIOZero not working

$
0
0
Hi,
I have upgraded my old Raspberry Pi 4 to the latest Bookworm OS. But I am unable to run any gpiozero code anymore.

Even the simple blink command does not work.

Code:

from gpiozero import LEDfrom time import sleepred = LED(17)while True:    red.on()    sleep(1)    red.off()    sleep(1)
I have not used Raspberry Pi for some time so I am not updated on the development.
Anything have changed?

Statistics: Posted by neliel123 — Sat Mar 23, 2024 2:23 am



Viewing all articles
Browse latest Browse all 4104

Trending Articles