Approved content
The content below is provided by a partner.
This library is designed to drive Cruise, You can get Cruise here.
http://www.alsrobot.cn/goods-883.html
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()
})
for PXT/microbit
MIT
CruiseE=github:alsrobot-microbit-makecode-packages/MiniCruise#v1.0.1