first commit
This commit is contained in:
commit
95772dfc7f
12
1_LED/LED.py
Normal file
12
1_LED/LED.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from gpiozero import LED
|
||||||
|
import time
|
||||||
|
|
||||||
|
R = input("Rest for: ")
|
||||||
|
led = LED(18)
|
||||||
|
|
||||||
|
|
||||||
|
while True:
|
||||||
|
led.toggle()
|
||||||
|
time.sleep(R)
|
||||||
|
led.toggle()
|
||||||
|
time.sleep(R)
|
Loading…
x
Reference in New Issue
Block a user