2022-05-05 19:19:37 +08:00

24 lines
384 B
Python

import Arm2D
import PikaStdLib
import ctypes
import module
import PikaDebug
pdb = PikaDebug.Debuger()
pdb.set_trace()
line = Arm2D.Line()
res = line.on()
line.off()
line.moveTo(20)
while True:
if right.read() == 1:
print('right')
if left.read() == 0:
print("left")
if up.read() == 0:
print('up\n')
if down.read() == 0:
print('down')