mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
test if for pre-compiler
This commit is contained in:
parent
66d605ba0c
commit
419ac365b9
@ -7,5 +7,11 @@ line.off()
|
||||
line.moveTo(20)
|
||||
|
||||
while True:
|
||||
line.off()
|
||||
line.on()
|
||||
if right.read() == 1:
|
||||
print('right')
|
||||
if left.read() == 0:
|
||||
print('left')
|
||||
if up.read() == 0:
|
||||
print('up')
|
||||
if down.read() == 0:
|
||||
print('down')
|
Loading…
x
Reference in New Issue
Block a user