Gathered scripts

This commit is contained in:
2025-12-14 14:59:47 +01:00
parent 76eb0f8862
commit 83eee81712
8 changed files with 36 additions and 5 deletions

17
rpi/scripts/timer/led.py Normal file
View File

@@ -0,0 +1,17 @@
import grovepi
import time
LED = 2 # Digital port D2
grovepi.pinMode(LED, "OUTPUT")
def on():
grovepi.digitalWrite(LED, 1)
def off():
grovepi.digitalWrite(LED, 0)
if __name__ == "__main__":
on()
time.sleep(1)
off()