-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmotor-homebrew.py
More file actions
61 lines (48 loc) · 784 Bytes
/
motor-homebrew.py
File metadata and controls
61 lines (48 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from gpiozero import Button, LED
from time import sleep
wait = 0.001
ctrA = LED(14) # purple
ctrB = LED(15) # green
ctrC = LED(18) # orange
ctrD = LED(23) # white
while True:
ctrA.on()
ctrB.off()
ctrC.off()
ctrD.off()
sleep(wait)
ctrA.on()
ctrB.on()
ctrC.off()
ctrD.off()
sleep(wait)
ctrA.off()
ctrB.on()
ctrC.off()
ctrD.off()
sleep(wait)
ctrA.off()
ctrB.on()
ctrC.on()
ctrD.off()
sleep(wait)
ctrA.off()
ctrB.off()
ctrC.on()
ctrD.off()
sleep(wait)
ctrA.off()
ctrB.off()
ctrC.on()
ctrD.on()
sleep(wait)
ctrA.off()
ctrB.off()
ctrC.off()
ctrD.on()
sleep(wait)
ctrA.on()
ctrB.off()
ctrC.off()
ctrD.on()
sleep(wait)