Blocks for driving Kitronik micro:bit boards
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Initial Apr 7, 2017
.gitignore Initial Apr 7, 2017
LICENSE
Makefile Initial Apr 7, 2017
README.md Correct namespace in readme Aug 7, 2018
icon.png Added new package picture Jan 22, 2019
ns.ts
pxt.json 1.0.5 Aug 7, 2018
servolite.ts
tests.ts Moved all blocks to top level, changed namespace Aug 7, 2018
tsconfig.json

README.md

Kitronik blocks for micro:bit

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

ServoLite

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

License

MIT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)
pxt-kitronik-servo-lite=github:KitronikLtd/pxt-kitronik-servo-lite