Extension: add Neopixel Extended#7008
Conversation
|
@riknoll wondering if the new grid matrix be used here instead? |
I'd love to have a look at it. Where can I find it? |
|
oh yeah, it totally can! @PasAlt it hasn't been shipped yet but will be on friday. once it's released, i'll give you an example to work off of that shows how to use it |
@riknoll Does the pins.setMatrixWidth() do something else than just inform the simulator that it should be displayed as a matrix? So could it have a side effect just to put it like this in my code: |
|
I updated the extension to Version 2.1.2 (PasAlt/pxt-neopixel-matrix-extension@6c0d5f2) Added the pins.setMatrixWidth() to setMatrixWidth(). Updated the tests to reflect it correctly. Updated to version 9.0.2 in pxt.json. One thing to consider for the future: All of the Neopixels that I used till now were not wired the way the simulator expects it. Normally they are wired in a "snake"format, e.g. first row left to right, then second row right to left, then third row left to right, etc. |
|
@martinwork can you look at the updated extension? |
|
@martinwork It is two lines of code. You can find it in this commit: PasAlt/pxt-neopixel-matrix-extension@59a1643 |
|
Looks good! New all blocks for v2.1.2: Changes: Example:
|


Arising from support ticket https://support.microbit.org/helpdesk/tickets/100182 (private)
@pas
@abchatra
Extension: https://github.com/PasAlt/pxt-neopixel-matrix-extension
Version: v2.1.1
Product: https://www.adafruit.com/product/1487
All blocks: https://makecode.microbit.org/_KvuJdFfDv7YF