P10 32x16 LED panel 1/4, rows order issue solved

Hi,

As I could not reply in the following topic: P10 32x16 LED panel 1/4 scan now works with Adafruit_GFX - LEDs and Multiplexing - Arduino Forum
I have a simple solution for people having issues with the rows order and like me have the following one: 5 6 7 8 1 2 3 4 13 14 15 16 9 10 11 12

You just need to change in the drawPixel function

if (y < 4 || (y > 7 && y < 12))
{
shift += 8; // top rows start after lower 8 leds
}

to

if ((y > 3 && y < 8) || (y > 11 && y < 16))
{
shift += 8; // top rows start after lower 8 leds
}

Xavier

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.