How could I config the neopixel matrix command block of rows and columns to 8x8?

Issue #261 resolved
Tom Ming created an issue

Hi @John Maloney ,

I would like to add a command block for a 8x8 neopixel matrix.

How could I config the block of rows and columns to 8x8? (I expected the block something like below)

I try to define a command block for a 8x8 neopixel matrix.

It seems that it only could set the columns to 5 as below.

How could I config the command block columns to 8 as I expected.

Thx.

Comments (6)

  1. John Maloney repo owner

    Interesting display! Does Elecfreaks sell those?

    MicroBlocks does not have a way to control line breaks in multi-line blocks. As you see, it wraps every five parameters. However, I could add a special case for this block to the IDE.

    Note that 64 parameters requires a lot of stack space so this block, if called from a nested function, could get a stack overflow error. There might be better ways to accomplish the same thing, such as using a sequence of eight blocks, each with eight parameters to build a list of 64 colors. But we can try the single block first.

    Another potential issue is power. Although MicroBlocks limits the brightness of NeoPixels, 64 NeoPixels at the maximum allowable brightness will still require a lot of current. Are you planning to power the display from an external power supply? (It looks like the display may have it’s own power supply cable (in the center).

  2. John Maloney repo owner

    You may want to try the NeoPanel library, which was added since this issue was posted.

    I'm marking this issue resolved for now, but feel free to re-open or add further comments.

  3. Log in to comment