angilent / pxt-wukong

(悟空)micro:bit multifunctional expansion board WuKong

Home Page:https://elecfreaks.github.io/pxt-wukong/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wukong expansion board

Wukong

This library is designed to drive Wukong expansion board , You can get Wukong board here.

https://www.elecfreaks.com/store/elecfreaks-wukong-breakout-board-for-micro-bit.html

Code Example

input.onButtonPressed(Button.A, function () {
    wuKong.setAllMotor(100, -100)
})
input.onButtonPressed(Button.AB, function () {
    wuKong.stopAllMotor()
})
input.onButtonPressed(Button.B, function () {
    wuKong.setServoAngel(wuKong.ServoList.S0, 360)
    wuKong.setServoAngel(wuKong.ServoList.S2, 180)
    wuKong.setServoAngel(wuKong.ServoList.S4, 90)
    wuKong.setServoAngel(wuKong.ServoList.S6, 0)
})
basic.showIcon(IconNames.Heart)
wuKong.setLightMode(wuKong.LightMode.BREATH)

Supported targets

for PXT/microbit

License

MIT

About

(悟空)micro:bit multifunctional expansion board WuKong

https://elecfreaks.github.io/pxt-wukong/

License:MIT License


Languages

Language:TypeScript 100.0%