This commit is contained in:
parent
ab06cae02f
commit
0b4d83db47
1 changed files with 8 additions and 8 deletions
|
@ -200,7 +200,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
{
|
{
|
||||||
// Serial.printf("Condition 2, row %d ", row);
|
// Serial.printf("Condition 2, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -212,7 +212,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
|
|
||||||
// Serial.printf("Condition 2, row %d ", row);
|
// Serial.printf("Condition 2, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
{
|
{
|
||||||
// Serial.printf("Condition 2, row %d ", row);
|
// Serial.printf("Condition 2, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -240,7 +240,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
{
|
{
|
||||||
// Serial.printf("Condition 2, row %d ", row);
|
// Serial.printf("Condition 2, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
{
|
{
|
||||||
// Serial.printf("Condition 1, row %d ", row);
|
// Serial.printf("Condition 1, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // inverted panel
|
{ // inverted panel
|
||||||
|
@ -269,7 +269,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
row = vmodule_rows - row - 1;
|
row = vmodule_rows - row - 1;
|
||||||
// Serial.printf("Condition 1, row %d ", row);
|
// Serial.printf("Condition 1, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -283,7 +283,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
// Serial.printf("Condition 1, row %d ", row);
|
// Serial.printf("Condition 1, row %d ", row);
|
||||||
// refersed for the row
|
// refersed for the row
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // inverted panel
|
{ // inverted panel
|
||||||
|
@ -303,7 +303,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &virt_x, int16_t &vir
|
||||||
row = vmodule_rows - row - 1;
|
row = vmodule_rows - row - 1;
|
||||||
// Serial.printf("Condition 2, row %d ", row);
|
// Serial.printf("Condition 2, row %d ", row);
|
||||||
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
coords.x = ((vmodule_rows - (row + 1)) * virtualResX) + virt_x;
|
||||||
coords.y = virt_y % panelResY;
|
coords.y = (virt_y % panelResY);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue