Introduction
One of the simplest ways to get started with physical computing is to get an LED to turn on and off.Â
In this guide, we will get an LED to blink by connecting it to a Raspberry Pi 3 Model B. We will then program it using the GPIO Zero Python library.Â
On completion of this guide, you will have gained a better understanding of digital outputs.
Tools
-
-
-
-
-
-
-
-
-
-
-
from gpiozero import LED from time import sleep led = LED(21) while True: led.on() sleep(1) led.off() sleep(1)