menu_book Course Curriculum (Raspberry Pi) expand_more
Linux & Setup
GPIO Digital I/O
Sensors & Buses
Automation
Networking & Services
pull-up resistor
Learn pull-up resistor in Raspberry Pi with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Beginner
raspberry-pi-012.py
python
from gpiozero import Button
# internal pull-up means released=True voltage, pressed connects to ground
button=Button(2,pull_up=True,bounce_time=0.05)
print(button.is_pressed)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content