MakeCode package for the TomatoCube Drawbridge motor driver.
The Lighthouse drawbridge board provides a motor controller that can control one bi-directional DC motors.
Sets the speed of a motor in the range of -100 to 100.
runMotor(MakerBitMotor.A, 80)
Stops a motor.
stopMotor(MakerBitMotor.A)
Sets the rotation direction of a motor. Use this function at start time to configure your motors without the need to rewire.
setMotorRotation(MakerBitMotor.A, MakerBitMotorRotation.Backward)
Licensed under the MIT License (MIT). See LICENSE file for more details.
- for PXT/microbit