Useful Links
Computer Science
Internet of Things (IoT)
Raspberry Pi
1. Introduction to the Raspberry Pi
2. Getting Started with Your Raspberry Pi
3. Navigating the Raspberry Pi OS
4. Programming on the Raspberry Pi
5. Interfacing with the Physical World: GPIO
6. Basic GPIO Programming with Python
7. Advanced GPIO and Components
8. Networking and Remote Access
9. Building Internet of Things (IoT) Applications
10. Common Raspberry Pi Projects
Basic GPIO Programming with Python
GPIO Library Options
The `gpiozero` Library
Library Philosophy and Design
Installation and Import
Device Abstraction Benefits
Built-in Safety Features
Alternative Libraries
RPi.GPIO Library
pigpio Library for Advanced Control
WiringPi Python Bindings
Library Comparison and Selection
Digital Output Control
Controlling Single LEDs
Basic Circuit Construction
LED and Current Limiting Resistor Selection
Python Code for LED Control
On/Off State Management
LED Blinking Patterns
Simple Blinking with Time Delays
Variable Blink Rates
Complex Blinking Patterns
Multiple LED Coordination
Controlling Multiple Outputs
LED Arrays and Patterns
Binary Counting Displays
Sequential Lighting Effects
Digital Input Reading
Button Input Circuits
Basic Button Wiring
Pull-up vs. Pull-down Resistor Configuration
Internal Pull Resistor Usage
Switch Debouncing Implementation
Button State Detection
Polling vs. Event-Driven Programming
Button Press and Release Detection
Long Press and Multi-Click Detection
Interrupt-Based Input Handling
Multiple Input Management
Reading Multiple Buttons
Input Priority and Handling
State Machine Implementation
Combining Inputs and Outputs
Interactive LED Control
Button-Controlled LED States
Toggle and Momentary Control
Multi-Button LED Patterns
Simple User Interfaces
Menu Navigation with Buttons
Status Indication with LEDs
Feedback and Confirmation Systems
Previous
5. Interfacing with the Physical World: GPIO
Go to top
Next
7. Advanced GPIO and Components