Quick Reference
motor_pair.move(cm)
Drive straight forward (negative = back).
motor_pair.move(deg, 'degrees', steering=100)
Pivot the base. steering 100 = right, −100 = left.
motor_pair.start(steering, speed)
Drive continuously until stop().
distance_sensor.get_distance_cm()
Distance ahead in cm.
color_sensor.get_color()
Colour name under sensor, or None.
color_sensor.get_reflected_light()
0 (dark) – 100 (bright).
hub.light_matrix.show_image('HEART')
Show a picture on the 5×5 display.
hub.speaker.beep()
Play a beep.
wait_for_seconds(1)
Pause the program.