Support 3 displays

This commit is contained in:
Yash Karandikar 2023-04-02 15:36:14 -05:00
parent 00c210a6c2
commit d7b5f72f02
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#include "LedControl.h"
LedControl leds = LedControl(2, 4, 3, 2);
LedControl leds = LedControl(2, 4, 3, 3);
void setup() {
for (int i = 0; i < leds.getDeviceCount(); i++) {
@ -21,8 +21,10 @@ void loop() {
for (int j = 0; j <= y; j++) {
val ^= (1 << j);
}
if (x > 7) {
leds.setRow(1, x-8, val);
if (x > 15) {
leds.setRow(2, x-16, val);
} else if (x > 7) {
leds.setRow(1, 15-x, val);
} else {
leds.setRow(0, x, val);
}

2
config
View file

@ -1,5 +1,5 @@
[general]
bars = 16
bars = 24
autosens = 1
[output]