Skip to content

KroxCZ/pxt-cutebot

 
 

Repository files navigation

Cute:bot Car Package

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

https://shop.elecfreaks.com/products/elecfreaks-micro-bit-smart-cutebot-kit-without-micro-bit-board?_pos=1&_sid=aa0fcece2&_ss=r

Code Example

let strip: neopixel.Strip = null
basic.showLeds(`
    . . . # .
    # . # . #
    # . # . #
    # . # . #
    . # . . .
    `)
strip = neopixel.create(DigitalPin.P15, 24, NeoPixelMode.RGB)
strip.showRainbow(1, 360)
basic.showIcon(IconNames.Heart)
basic.forever(function () {
    cuteBot.motors(30, 90)
    basic.pause(1500)
    cuteBot.motors(90, 30)
    basic.pause(1500)
})
basic.forever(function () {
    strip.rotate(1)
    basic.pause(100)
    strip.show()
})

Supported targets

for PXT/microbit

License

MIT

About

(CS)micro:bit smart cutebot by ELECFREAKS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.1%
  • C++ 20.9%