Blocks that support Kitronik Servo:Lite board for the micro:bit
- 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()
})
MIT
- for PXT/microbit (The metadata above is needed for package search.)