Control LEDs using gpiozero and RPi.GPIO libraries on Raspberry Pi

Опубликовано: 02 Ноябрь 2024
на канале: Nazmus Nasir
7,035
58

Welcome to another Raspberry Pi Tutorial. Today's tutorial covers something simple. How to turn on an LED!

I use both methods for my home automation projects. Although we are turning on an LED, the same idea can be used to turn on a Relay or a transistor, which in turn can control LED strips, lights, and pretty much anything else that can be turned on and off.

I give examples with two libraries: gpiozero and RPi.GPIO. They are both good and can be used for many purposes.

You can find the two little scripts I created on Github: https://github.com/naztronaut/rpi.gpi...

Please also see the following link at EasyProgramming.net for more information on the project itself: https://www.easyprogramming.net/raspb...

I hope you enjoy the tutorial!

Have questions? Ask below or on EasyProgramming.net!

#RaspberryPi #HowTo #TechTutorials

-----------
Visit my website: https://www.easyprogramming.net
Subscribe on YouTube:    / nazmusnasir  
Support me on Patreon:   / nazmus  
Follow me on Twitter:   / nazteroid  
Like me on Facebook:   / easyprogrammingnet  
Check out my Github: https://github.com/naztronaut