update error

This commit is contained in:
2021-01-07 10:48:20 +01:00
parent 4f4cbde2bf
commit 1abe7b1773

View File

@@ -77,7 +77,7 @@ class LedMatrix:
# one step to the east, and then south to north, before the cycle # one step to the east, and then south to north, before the cycle
# starts over. # starts over.
stride = self.stride stride = self.stride
phys_addr = ((x-1)%self.panelcolumn) + ((y-1)*self.panelcolumn) + (round_down((x-1)/self.panelcolumn) * self.panelcolumn * self.panelcolumn) phys_addr = ((x-1)%self.panelcolumn) + ((y-1)*self.panelcolumn) + (self.round_down((x-1)/self.panelcolumn) * self.panelcolumn * self.panelcolumn)
#MOD(x-1;panelCol) + ((y-1)*panelCol) + (FLOOR.MATH((x-1)/panelCol;1)*panelCol*panelRow) #MOD(x-1;panelCol) + ((y-1)*panelCol) + (FLOOR.MATH((x-1)/panelCol;1)*panelCol*panelRow)
# if x & 1: # if x & 1:
# phys_addr += stride - 1 - y # phys_addr += stride - 1 - y