Debian Codegraph @

microhope/microhope-doc/prog/motor.py

raw
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