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

Python • lgpio.error: 'GPIO busy'

$
0
0
Recently I bought rpi 5, I have connected a LED to it and every time I try to run this code I get: lgpio.error: 'GPIO busy'

Code:

from gpiozero import LEDfrom time import sleepled = LED(26)try:    while True:        led.on()        sleep(1)        led.off()        sleep(1)except KeyboardInterrupt:    print('Interrupted')

Statistics: Posted by realbox — Mon Apr 29, 2024 12:32 pm



Viewing all articles
Browse latest Browse all 1234

Trending Articles