/pxt-drawbridge-motor

Primary LanguageTypeScriptMIT LicenseMIT

Drawbridge Motor

MakeCode package for the TomatoCube Drawbridge motor driver.

Motor Blocks

The Lighthouse drawbridge board provides a motor controller that can control one bi-directional DC motors.

runMotor

Sets the speed of a motor in the range of -100 to 100.

runMotor(MakerBitMotor.A, 80)

stopMotor

Stops a motor.

stopMotor(MakerBitMotor.A)

setMotorDirection

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)

License

Licensed under the MIT License (MIT). See LICENSE file for more details.

Supported targets

  • for PXT/microbit