Python
Helpful tips for coding the Sumo Board
Remember to include a 3 second delay at the start
import time
time.sleep(2.5) #try 2.5 seconds at the start of your program - time it!Motors move in the wrong direction?
self.leftMotor = MotorClass.Motor(board.M1B, board.M1A)
self.rightMotor = MotorClass.Motor(board.M2A, board.M2B)
self.leftMotor = MotorClass.Motor(board.M1A, board.M1B)
Include a small sleep in each loop
Declare your pins first
A simple example
Last updated