Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 1.75 KB

README.md

File metadata and controls

51 lines (30 loc) · 1.75 KB

MakerBit Motor

Build Status

MakeCode package for the MakerBit motor driver.

MakerBit Board

The MakerBit connects to the BBC micro:bit to provide easy connections to a wide variety of sensors, actuators and other components. Among other things, it features a motor driver.

http://makerbit.com/

MakerBit MakerBit+R
MakerBit MakerBit+R with motor controller

Motor Blocks

The MakerBit board provides a motor controller that can control two bi-directional DC motors, or four one-direction motors.

MakerBit runMotor

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

makerbit.runMotor(MakerBitMotor.A, 80)

MakerBit stopMotor

Stops a motor.

makerbit.stopMotor(MakerBitMotor.A)

MakerBit setMotorDirection

Sets the rotation direction of a motor. Use this function at start time to configure your motors without the need to rewire.

makerbit.setMotorRotation(MakerBitMotor.A, MakerBitMotorRotation.Backward)

License

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

Supported targets

  • for PXT/microbit