Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Raspberry Pi LESSON 30: Control LEDs with Buttons on GPIO Pins

58.2K views on YouTube

This tutorial shows you how to control LED’s using the GPIO pins on the Raspberry Pi using Python. This demonstrates use of the GPIO pins as both inputs and outputs.

See code and full lesson details at:
http://www.toptechboy.com/arduino-with-python/raspberry-pi-lesson-30-controlling-leds-from-push-buttons/ –
–
*LEGAL DISCLAIMER:*
The code, hardware setups, circuit diagrams, mathematical calculations, and technical methods provided in this video are strictly for educational and demonstration purposes.

All math, code, and instructional content are provided “AS IS”, without warranty of any kind, express or implied, including but not limited to guarantees of accuracy, completeness, or fitness for a specific purpose.

All hardware assembly, circuit wiring, and software execution are performed entirely at your own risk. The creator assumes no liability for equipment damage, component failure, data loss, or personal injury resulting from the use or implementation of any information or files presented in this content.