Simulation is working

This commit is contained in:
Ollo
2023-08-17 22:19:12 +02:00
parent c5bfaa2a4a
commit aac762e8f1
3 changed files with 13 additions and 9 deletions

View File

@@ -53,8 +53,8 @@ void UdpLedServer::processTheDatagram(QNetworkDatagram datagram) {
int currentIndex = PACKET_INDEX_PANEL0;
uint16_t mask = 1;
for(int x=0; x < (PANEL_WIDTH * MAXIMUM_PANELSIZE); x++) {
for(int y=0; y < PANEL_HEIGHT; y++) {
for(int y=0; y < PANEL_HEIGHT; y++) {
for(int x=0; x < (PANEL_WIDTH * MAXIMUM_PANELSIZE); x++) {
if (datagram.data().at(currentIndex) & mask) {
this->changeLEDstate(x, y);
qDebug() << x << "x" << y << " set";