Yesterday while testing the software part, I experienced a really annoying glitch: in certain circumstances a LED starts to glow (rather dimmed) although I did never tell my Trellis to do so. I narrowed it down to this sketch:
Code: Select all
#include <Wire.h>
#include "Adafruit_Trellis.h"
Adafruit_Trellis matrix0 = Adafruit_Trellis();
Adafruit_Trellis matrix1 = Adafruit_Trellis();
Adafruit_Trellis matrix2 = Adafruit_Trellis();
Adafruit_Trellis matrix3 = Adafruit_Trellis();
Adafruit_TrellisSet trellis = Adafruit_TrellisSet(&matrix0, &matrix1, &matrix2, &matrix3);
void setup() {
trellis.begin(0x70, 0x71, 0x72, 0x73);
trellis.clear();
for (byte i = 0; i < 4; ++i) {
trellis.setLED(0 + i * 16);
trellis.setLED(1 + i * 16);
trellis.setLED(7 + i * 16);
}
}
void loop() {
trellis.readSwitches();
trellis.writeDisplay();
delay(30);
}
When I press button 8 (while LED 8 is on) everything is still OK: