Update rc_car.py

This commit is contained in:
Alan Wang
2022-01-09 21:58:54 +08:00
committed by GitHub
parent ac9ca20566
commit 589b564dfe

View File

@@ -18,6 +18,8 @@ motor_right_B.write_digital(0)
motor_left_A.write_digital(0) motor_left_A.write_digital(0)
motor_left_B.write_digital(0) motor_left_B.write_digital(0)
display.show(Image.SQUARE)
while True: while True:
direction = radio.receive() direction = radio.receive()
if direction == None: if direction == None: