Peripheral myMotor As MotorRunnerC @ 0 ' Set the module ID as 0 Sub Main() Debug CLS MyMotor.Forward(200) ' Set the motor to rotate forward at the speed of 200 Pause 3000 MyMotor.Stop() ' Stop the Motion of the Motor Pause 3000 MyMotor.Backward(200) ' Set the motor to rotate backward at the speed of 200 Pause 3000 MyMotor.SetDir(0) ' Set the motor to rotate in the forward direction Pause 3000 MyMotor.SetSpdDC(150) ' Change the rotation speed of the motor to 150 Pause 3000 MyMotor.Brake() ' Stop the motor rapidly End Sub