Datasheet

Now the first pixel is at the top right. Pixels increment top-to-bottom — it’s now column major. The
order of the columns is still progressive though.
We declare the matrix thusly:
The first two arguments — 5 and 8 — are the width and height of the matrix, in pixels. The third
argument — 6 — is the pin number to which the NeoPixels are connected. On the shield this is
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(5, 8, 6,
NEO_MATRIX_TOP + NEO_MATRIX_RIGHT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE,
NEO_GRB + NEO_KHZ800);
© Adafruit Industries https://learn.adafruit.com/adafruit-neopixel-uberguide Page 31 of 39