Datasheet
SCL goes to the I2C clock pin, on an Uno this is also known as A5
SDA goes to the I2C data pin, on an Uno this is also known as A4
We connect the INT interrupt pin to A2 - this pin isn't used in our demo code so you can leave it unconnected if
you wish.
Now open up the Arduino IDE and open up the File->Examples->Adafruit_Trellis->TrellisTest example sketch and
upload it to your Arduino
This sketch tests a single tile, with the default 0x70 address. It will light up all the LEDs in order and then turn them off.
Then you can place the elastomer on top & press buttons to toggle buttons
Library reference
The trellis example sketch shows you just about everything you can do with the Trellis library.
Creating the objects
Each panel has its own named object called an Adafruit_Trellis, created like this:
Adafruit_Trellis matrix = Adafruit_Trellis();
when you have many Adafruit_Trellis objects, we suggest creating a TrellisSet which will read all the buttons at once,
write all the LEDs at once, etc. Each TrellisSet is given the names of the Adafruit_Trellis objects you created, up to 8.
Adafruit_TrellisSet trellis = Adafruit_TrellisSet(&matrix0, &matrix1, &matrix2, &matrix3);
When you call begin to start the Adafruit_TrellisSet object, pass in the addresses that correspond to your PCBs (see
the next page on how to set addresses). The addresses range from 0x70 to 0x77
trellis.begin(0x70, 0x71, 0x72, 0x73); // or four!
Controlling LEDs
© Adafruit Industries https://learn.adafruit.com/adafruit-trellis-diy-open-source-led-keypad Page 14 of 27










