Approved content

The content below is provided by a partner.

elecfreaks/pxt-wukong 1.4.7 GitHub

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

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