Git Product home page Git Product logo

colorbit's Introduction

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: [email protected] .

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

colorbit's People

Contributors

xuefengedu avatar

Stargazers

 avatar MiroChao avatar JuanYzh avatar  avatar

Watchers

James Cloos avatar  avatar

colorbit's Issues

Butterfly Icon displays as Tortoise Icon

Hi

In line 412 of your extension code ....

else if(myicon==19) str="51bitpasswd:**0x03be,0xa000**";//Butterfly

The value 0x03be,0xa000 is the same as the previous line for the Tortoise Icon

This means that of the butterfly icon is selected it actually displays as the Tortoise on your colorbit

I cannot work out what the actual value needed to display the Butterfly icon correctly is - can you help please?

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.