17 lines
289 B
Python
Raw Normal View History

2021-10-01 00:21:50 +08:00
import Arm2D
import PyInfo
line = Arm2D.Line()
res = line.on()
line.off()
line.moveTo(20)
while True:
2021-10-26 09:27:33 +08:00
if right.read() == 1:
print('right')
if left.read() == 0:
print('left')
if up.read() == 0:
print('up')
if down.read() == 0:
print('down')