print(
'hello!')
Prints whatever is inside the () in the REPL.
motor.run(
50)
Starts spinning the single motor at the speed inside the ().
Use a negative number to spin opposite direction.
motor.run_both(
50)
Starts spinning both sides of the dual motorat the speed inside the ().
Use a negative number to spin opposite direction.
motor.run_left(
50)
Starts spinning the left side of the dual motor .
motor.run_right(
50)
Starts spinning the right side of the dual motor.
motor.stop()
Stops the motor.
motor.set_speed(
50)
Sets motor speed to the percentage inside the ().
motor.angle
Returns the motor's current angle (0–359).
time.sleep(
1)
Pauses program for a number of seconds.
channel.send(
'message')
Sends a message to the current channel.