Skip to content

Commit ea70df1

Browse files
committed
Add Extra LEDs in Minute Array
1 parent caa0bcd commit ea70df1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/Uhrtypes/Uhrtype.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,13 @@ class iUhrType {
252252
if (G.buildTypeDef == BuildTypeDef::DoubleResM1) {
253253
numPixelsWordMatrix = rowsWordMatrix() * (colsWordMatrix() * 2 - 1);
254254
}
255+
if (G.layoutVariant[ExtraLedPerRow]) {
256+
if (G.layoutVariant[FlipHorzVert] == false) {
257+
numPixelsWordMatrix += rowsWordMatrix() - 1;
258+
} else {
259+
numPixelsWordMatrix += colsWordMatrix() - 1;
260+
}
261+
}
255262

256263
for (uint8_t i = 0; i < 4; i++) {
257264
switch (col) {

0 commit comments

Comments
 (0)