I now have a new version of FastLED_Neomatrix which works well enough on teensy

I now have a new version of FastLED_Neomatrix which works well enough on teensy 3.1, ESP8266 and ESP32: https://github.com/marcmerlin/FastLED_NeoMatrix
I’d love for more people to try it.
Example code: https://github.com/marcmerlin/FastLED_NeoMatrix/blob/master/examples/MatrixGFXDemo/MatrixGFXDemo.ino

You don’t know Adafruit_Neomatrix and you’re using matrices of pixels?
Neomatrix, outside of doing panel tiling and coordinate calculations for you, gives you full access to Adafruit::GFX, i.e. drawing and font primitives. Of course, you can also draw bitmaps, but if this is all you do, FastLED might be good enough for you.
https://learn.adafruit.com/adafruit-neopixel-uberguide/neomatrix-library explains how the library works.

This gives an example of what you can do with GFX Matrix support:
http://marc.merlins.org/perso/arduino/post_2017-04-24_Adafruit-GFX-on-NeoMatrix-and-RGB-Matrix-Panel-Demo.html

I’d love for people to try it out and see if not only works for you too, but also helps you out.

Nice work! I just posted about a Udemy course I released, and one topic I’ve been considering for the future is LED matrices. Consequently, I’ve been thinking about matrices quite a bit of late.

The way your matrix is wired means that you’d have to flip the X coordinates for every second row of the matrix. Does your library support this as well as non-flipped addressing?

I’ll definitely give the library a try when my plate is less full :slight_smile:

@Chris_Parton it works in both directions, see the documentation from adafruit: https://learn.adafruit.com/adafruit-neopixel-uberguide/neomatrix-library

Hi Marc
awesome collection! Which type of power supply did you use ?
I develop a project with 4 matrix WS8216 like this:

But, with an USB power supply 2A the ligths twinkle.
I have tested with a chinese power supply 10A, I have the same problem:
https://fr.aliexpress.com/item/5V-10A-LED-Power-Supply-For-WS2812B-WS2811-LPD8806-WS2801-LED-Strip-Light-DC5V/32797159316.html?spm=a2g0s.9042311.0.0.9V8x9z

@Patrick_Aversenq bonjour. I do have a 40A 5V chinese power supply I tried for fun, but honestly, I usually only use up to 2A since my project is supposed to be powered by batteries.
I did manage to send 30A to my 32x32 panel once, but that wasn’t without wires, smoking first, and it was so blinding bright that people would have hated me if I used that amount at night (which is my intended purpose).

@Marc_MERLIN Thanks. So my problem is not the power supply! I wil investigate.

@Patrick_Aversenq it could be the power supply. If you draw more amps than the power supply can provide, you will get flickering of all your pixels at the same time.
Simply set the brightness to let’s say 16 and see if the flickering goes away. If it does, it’s because you were drawing more amps than the power supply could provide.
At that point, either upgrade the power supply, or ramp up the brightness until you reach just before flickering levels.

One question more, to be sure to understand:
32*32 = 1024 lights
1024 * 3 (leds by lights) = 3072 leds
3096 * 20mA (per led if you want a white screen) = 61,44 A !!!

@Patrick_Aversenq I made a separate thread for this: https://plus.google.com/+MarcMERLIN/posts/4XoZNU56D8k

If I set the brightness to 100 (100,100,100) the light stay fixed. But normaly with 10A I should be go more higher