/pxt-kitronik-servo-lite

Blocks for driving Kitronik micro:bit boards

Primary LanguageTypeScriptMIT LicenseMIT

Kitronik blocks for micro:bit

Blocks that support Kitronik Servo:Lite board for the micro:bit

ServoLite

  • turn around A
input.onButtonPressed(Button.A, function () {
    kitronik_servo_lite.turnRight(90)
})
  • go forward B
input.onButtonPressed(Button.B, function () {
    kitronik_servo_lite.driveForwards(10)
})
  • stop both motors when pressing A+B
input.onButtonPressed(Button.AB, function () {
    kitronik_servo_lite.stop()
})

License

MIT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)