Skip to content

1010Technologies/pxt-makerbit-motor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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