Skip to content

makecode pxt of ColorBit Tranditional Chinese version because of makecode bug: load zh folder for both zh-CN and zh-TW at present

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

51bit/ColorBit-TW

Repository files navigation

#ColorBit driver

makecode pxt of ColorBit Tranditional Chinese version because of makecode bug: load zh folder for both zh-CN and zh-TW at present

once the makecode bug fix, this extension will merge into ColorBit

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

  • for PXT/microbit

License

MIT

About

makecode pxt of ColorBit Tranditional Chinese version because of makecode bug: load zh folder for both zh-CN and zh-TW at present

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published