Skip to content

Commit dfe2915

Browse files
author
KryQ
committed
working p10 20x40 multiplexer
1 parent e5f311c commit dfe2915

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.vscode/sftp.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "My Server",
3+
"host": "192.168.1.38",
4+
"protocol": "sftp",
5+
"port": 22,
6+
"username": "pi",
7+
"remotePath": "~/display/",
8+
"uploadOnSave": true
9+
}

lib/multiplex-mappers.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ namespace rgb_matrix
446446
x = x + (x / tile_width) * tile_width + 8 + evenOffset[x % 8];
447447
}
448448

449-
*matrix_x = ((*matrix_x / 8) + 1) * 8 - (*matrix_x % 8) - 1;
449+
*matrix_x = ((x / tile_width) + 1) * tile_width - (x % tile_width) - 1;
450450
*matrix_y = (y % tile_height) + tile_height * (y / (tile_height * 2));
451451
}
452452
};

0 commit comments

Comments
 (0)