Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mignon-p/pxt-butterfly
MakeCode extension for my NeoPixel butterflies - beta
https://github.com/mignon-p/pxt-butterfly
butterfly makecode microbit pxt-microbit
Last synced: about 1 month ago
JSON representation
MakeCode extension for my NeoPixel butterflies - beta
- Host: GitHub
- URL: https://github.com/mignon-p/pxt-butterfly
- Owner: mignon-p
- License: mit
- Created: 2018-09-19T00:04:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T19:55:02.000Z (over 6 years ago)
- Last Synced: 2024-09-06T11:07:52.462Z (4 months ago)
- Topics: butterfly, makecode, microbit, pxt-microbit
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pxt-butterfly
This package is built on top of the [NeoPixel package][1] and adds
some blocks which make it more convenient to use my
[NeoPixel butterflies][2]. 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.[1]: https://github.com/microsoft/pxt-neopixel
[2]: https://github.com/ppelleti/ButterflyChain## Basic usage
```blocks
// 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
- [x] Add a reference for your blocks here
- [x] Add "icon.png" image (300x200) in the root folder
- [x] Add "- beta" to the GitHub project description if you are still iterating it.
- [x] Turn on your automated build on https://travis-ci.org
- [x] Use "pxt bump" to create a tagged release on GitHub
- [ ] Get your package reviewed and approved https://makecode.microbit.org/packages/approvalRead more at https://makecode.microbit.org/packages/build-your-own
## License
MIT
## Supported targets
* for PXT/microbit
(The metadata above is needed for package search.)