Examples showing how to turn on an LED using the gpiozero library and RPi.GPIO libraries
Examples showing how to turn on an LED using the gpiozero library and RPi.GPIO libraries
RPi.GPIO and gpiozero should already be installed by default on a base installation of Raspbian. But for some reason, you don’t have gpiozero installed, install it with the following command:
sudo apt install python3-gpiozero
Click the image below to watch the video tutorial
Check out the tutorial at https://www.easyprogramming.net/raspberrypi/gpiozero_rpigpio_led.php