Approved content

The content below is provided by a partner.

elecfreaks/pxt-xgo 1.3.9 GitHub

micro:bit XGO Robot Kit

This extension is designed to programme and drive the micro:bit XGO Robot Kit. You can get micro:bit XGO Robot Kit from the Elecfreaks store.

Code Example

input.onButtonPressed(Button.A, function () {
    xgo.execution_action(xgo.action_enum.Sit_down)
})
input.onButtonPressed(Button.AB, function () {
    xgo.move_xgo(xgo.direction_enum.Forward, 50)
})
input.onButtonPressed(Button.B, function () {
    xgo.execution_action(xgo.action_enum.Wave)
})
xgo.init_xgo_serial(SerialPin.P1, SerialPin.P2)
xgo.execution_action(xgo.action_enum.Default_posture)
xgo.leg_lift_continue(30, 3)
basic.forever(function () {

})

Supported targets

for PXT/microbit

License

MIT

XGO=github:elecfreaks/pxt-xgo#v1.3.9