This commit is contained in:
Karl 2019-11-10 10:28:02 +00:00
parent 5426a1107f
commit b4881aecbb

View File

@ -0,0 +1,11 @@
from gpiozero import Button
from signal import pause
def say_hello():
print("Hello!")
button = Button(23)
button.when_pressed = say_hello
pause()