You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#ports: the ports that the motor(s) are plugged into#power: 0-100 (how fast the mindstorm should go)motor_start(ports, power)
# Example usage# Start motors a & b with power 50motor_start('ab', 50)
Start Motor for x Seconds
#ports: the ports that the motor(s) are plugged into#power: 0-100 (how fast the mindstorm should go)#time: the time in milliseconds to run the motor formotor_time(ports, power, time)
# Example usage# Start motors a & b with power 50 and stop after 5 secondsmotor_time('ab', 50, 5000)
Stop Motor
#ports: the ports that the motor(s) are plugged intomotor_stop(ports)
# Example usage# stop motors a & bmotor_stop('ab')
Turn
#ports: the ports that the motor(s) are plugged into#power: 0-100 (how fast the mindstorm should go)#degrees: How many degrees the motor should turnmotor_degrees(ports, power, degrees)
# Example usage# turn motor a -90 degrees motor_degrees('a', 50, -90)