Approved content

The content below is provided by a partner.

51bit/colorbit 0.1.4 GitHub

51bit ColorBit driver

ColorBit is a 5x5 WS2812B RGB LED matrix for micro:bit, the makecode extension code is based on https://github.com/Microsoft/pxt-neopixel and developed for 51bit ColorBit board.

I am selling ColorBit on https://51bit.taobao.com/ , only ship mainland of China at present, if you are out of mainland of China, you need to send me email to buy it: 648952046@qq.com .

ColorBit:

Alt text

Basic Usage

let colorbit_51bit: colorbit.Strip = null
input.onButtonPressed(Button.A, function () {
    colorbit_51bit.showColorIcon(ColorIcon.ChristmasTree, colorbit.colors(BitColors.Red))
})
input.onButtonPressed(Button.AB, function () {
    colorbit_51bit.setMultiColor(false)
})
input.onButtonPressed(Button.B, function () {
    colorbit_51bit.showScrollStringColor("ABC#$123", colorbit.colors(BitColors.Red))
})
colorbit_51bit = colorbit.initColorBit(DigitalPin.P0, BitColorMode.RGB)
basic.forever(function () {

})

Use ||initColorBit|| to init ColorBit.

Use ||showColorIcon|| to show ColorBit icons.

Use ||setMultiColor|| to set multiple color per light.

Use ||showScrollStringColor|| to show scroll colorful string in ColorBit.

Alt text Alt text Alt text

Gif demo

Show single color string

Alt text

Show multiple color string

Alt text

Supported targets

License

MIT

colorbit=github:51bit/colorbit#v0.1.4