Home

Awesome

pxt-butterfly

This package is built on top of the NeoPixel package and adds some blocks which make it more convenient to use my NeoPixel butterflies. There are blocks for setting the inner, middle, or outer LEDs on the butterfly as a group, rather than having to set each LED individually.

Basic usage

// This creates a NeoPixel strip with 18 LEDs and RGB format
let strip = butterfly.create(DigitalPin.P0, 1)

// Set colors on the butterfly
butterfly.setInner(strip, 0, NeoPixelColors.Red)
butterfly.setMiddle(strip, 0, NeoPixelColors.Green)
butterfly.setOuter(strip, 0, NeoPixelColors.Blue)

// Send the data to the butterfly
strip.show()

TODO

Read more at https://makecode.microbit.org/packages/build-your-own

License

MIT

Supported targets