Approved content
The content below is provided by a partner.
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.
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 () {
})
for PXT/microbit
MIT
XGO=github:elecfreaks/pxt-xgo#v1.3.9