Approved content

The content below is provided by a partner.

elecfreaks/pxt-wukong 1.5.4 GitHub

Wukong expansion board

Wukong

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

https://shop.elecfreaks.com/products/elecfreaks-micro-bit-wukong-expansion-board-adapter?_pos=1&_sid=733714545&_ss=r

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

wuKong=github:elecfreaks/pxt-wukong#v1.5.4