inital commit

This commit is contained in:
2022-07-16 23:13:36 +12:00
commit 5ae6430d0e
8 changed files with 189 additions and 0 deletions

18
led.py Executable file
View File

@@ -0,0 +1,18 @@
from gpiozero import LED, Button
from time import sleep
import random
count = 0
leds = [LED(19), LED(26), LED(13)]
button = Button(5)
def b():
print("pressed")
button.when_pressed = b
while True:
leds[random.randint(0,2)].toggle()
sleep(0.2)