☰
Debian Codegraph
@
5.3.5+repack-1
/
/
microhope
/
microhope-doc
/
prog
/
motor.py
☽
☼
microhope/microhope-doc/prog/motor.py
code
plain
raw
GPL-3
2010-2018 Ajith Kumar B.P <
[email protected]
>
debian/copyright
1
import phm, time
2
p=phm.phm()
3
4
5
p.set_ddr(0,255)
6
pos = 0
7
seq = [12, 6, 3, 9]
8
9
i = 0
10
while(1):
11
p.set_port(0,seg[i%3])
12
i += 1