Approved content

The content below is provided by a partner.

alsrobot-microbit-makecode-packages/MiniCruise 1.0.1 GitHub

Cute:bot Car Package

This library is designed to drive Cruise, You can get Cruise here.

http://www.alsrobot.cn/goods-883.html

Code Example


basic.showLeds(`
    # . . . #
    # . . # #
    # # . # #
    # . # . #
    # . # . #
    `)
let strip = neopixel.create(DigitalPin.P15, 24, NeoPixelMode.RGB)
strip.showRainbow(1, 360)
basic.showIcon(IconNames.Heart)
basic.forever(function () {
    CruiseE.motorRun(500, 500, 2)
    basic.pause(2000)
    CruiseE.motorRun(500, 500, 2)
    basic.pause(2000)
})
basic.forever(function () {
    strip.shift(1)
    basic.pause(100)
    strip.show()
})

Supported targets

for PXT/microbit

License

MIT

CruiseE=github:alsrobot-microbit-makecode-packages/MiniCruise#v1.0.1