Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Raspberry Pi) expand_more
Raspberry Pi / GPIO Digital I/O

digital output LED

Learn digital output LED in Raspberry Pi with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.

12 min read • Beginner
raspberry-pi-010.py
python
from gpiozero import LED
from time import sleep
led=LED(17)
led.on(); sleep(1); led.off()
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content