Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

push button raspberry pi

# One prong to GND the other to a GPIO pin

from gpiozero import Button

button = Button(GPIO pin)

button.wait_for_press()
print("button was pressed")
 
PREVIOUS NEXT
Tagged: #push #button #raspberry #pi
ADD COMMENT
Topic
Name
6+4 =