This commit is contained in:
user@raspberrypi.local
2026-01-08 09:10:24 +00:00
parent 7715726db3
commit 4e38a079b3

View File

@@ -1 +1,12 @@
print("testi") import time
from grove.gpio import GPIO
led = GPIO(5, GPIO.OUT)
button = GPIO(6, GPIO.IN)
while True:
if button.read():
led.write(1)
else:
led.write(0)
time.sleep(0.1)