Datasheet

update it to add up to 8 matrix names you defined. For example, 4 panels looks like:
Adafruit_TrellisSet trellis = Adafruit_TrellisSet(&matrix0, &matrix1, &matrix2, &matrix3);
Say the number
Change this number from 1 to whatever # you are addressing
// set to however many you're working with here, up to 8
#define NUMTRELLIS 1
Begin again
Change the begin() call to add more addresses. Originally we only have the default 0x70 address:
trellis.begin(0x70); // only one
Change this to add all the addresses you are using:
trellis.begin(0x70, 0x71, 0x72, 0x73); // four!
That's it! Now your TrellisSet will know and control up to 8 panels.
© Adafruit Industries https://learn.adafruit.com/adafruit-trellis-diy-open-source-led-keypad Page 16 of 27