Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KitronikLtd/pxt-kitronik-servo-lite
Blocks for driving Kitronik micro:bit boards
https://github.com/KitronikLtd/pxt-kitronik-servo-lite
Last synced: 3 months ago
JSON representation
Blocks for driving Kitronik micro:bit boards
- Host: GitHub
- URL: https://github.com/KitronikLtd/pxt-kitronik-servo-lite
- Owner: KitronikLtd
- License: mit
- Created: 2017-04-07T08:51:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-10T09:53:47.000Z (12 months ago)
- Last Synced: 2024-01-26T07:03:35.064Z (5 months ago)
- Language: TypeScript
- Size: 606 KB
- Stars: 24
- Watchers: 6
- Forks: 24
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-microbit-zh - Kitronik Servo Lite - Kitronik Servo:Lite(驱动伺服电机) 扩展板的pxt驱动. (编程 / JavaScript 和 MakeCode)
- awesome-microbit - Kitronik Servo Lite - Blocks that support Kitronik Servo:Lite board for the micro:bit. (👩💻 Programming / 🗿 JavaScript and MakeCode)
README
# Kitronik blocks for micro:bit
Blocks that support [Kitronik Servo:Lite board for the micro:bit](https://www.kitronik.co.uk/5623)
## ServoLite
* turn around ``A``
```blocks
input.onButtonPressed(Button.A, function () {
kitronik_servo_lite.turnRight(90)
})
```* go forward ``B``
```blocks
input.onButtonPressed(Button.B, function () {
kitronik_servo_lite.driveForwards(10)
})
```* stop both motors when pressing ``A+B``
```blocks
input.onButtonPressed(Button.AB, function () {
kitronik_servo_lite.stop()
})
```## License
MIT
## Supported targets
* for PXT/microbit
(The metadata above is needed for package search.)