Our Arduino library will do all the heavily lifting for you.

Visit the RGB Matrix ProtoMatter library guide page at https://learn.adafruit.com/adafruit-protomatter-rgb-matrix-library to install the Arduino library and load up the examples.

Use the following configuration when uploading example code, and you'll be glowing in a minute!

M0 or M4 FeatherWing (SAMD21/SAMD51)

// Use FeatherWing pinout
uint8_t rgbPins[]  = {6, 5, 9, 11, 10, 12};
uint8_t addrPins[] = {A5, A4, A3, A2};
uint8_t clockPin   = 13;
uint8_t latchPin   = 0;
uint8_t oePin      = 1;

// Create a 32-pixel tall, 64 pixel wide matrix with the defined pins
Adafruit_Protomatter matrix(
  64, 4, 1, rgbPins, 4, addrPins, clockPin, latchPin, oePin, false);

nRF52840 FeatherWing

// Special nRF52840 FeatherWing pinout
uint8_t rgbPins[]  = {6, A5, A1, A0, A4, 11};
uint8_t addrPins[] = {10, 5, 13, 9};
uint8_t clockPin   = 12;
uint8_t latchPin   = PIN_SERIAL1_RX;
uint8_t oePin      = PIN_SERIAL1_TX;

// Create a 32-pixel tall, 64 pixel wide matrix with the defined pins
Adafruit_Protomatter matrix(
  64, 4, 1, rgbPins, 4, addrPins, clockPin, latchPin, oePin, false);

For the smaller 16x32 matrix, the last line is a little different:

Adafruit_Protomatter matrix(
  32, 4, 1, rgbPins, 3, addrPins, clockPin, latchPin, oePin, false);

This guide was first published on Aug 22, 2018. It was last updated on Aug 22, 2018.

This page (Usage) was last updated on Oct 23, 2021.

Text editor powered by tinymce.