v.0.4.3 fonts_check jetzt über kompletten Fonts

This commit is contained in:
tiijay
2025-10-24 17:33:03 +02:00
parent 37d5276537
commit 3c30018893
3 changed files with 74 additions and 40 deletions

View File

@@ -68,21 +68,14 @@ class NeoPixel_64x64(NeoPixel):
self.write()
def clear_row(self, row: int, effect: bool = False) -> None:
"""
"""löscht eine Zeile im Display entsprechend des eingestellten Fonts
Clear one row of the display (turn off all pixels)\n
PRESUMING: font_5x7\n
rows: range(0,3) [row-height: 8 pixels, row-length: MATRIX_WIDTH(64)]\n
\n
row-0: 0 - 511 (Pixel 0 bis Pixel 8 * MATRIX_WIDTH(64)-1)\n
row-1: 512 - 1023\n
row-2: 1024 - 1535\n
row-3: 1536 - 2047\n
etc. ...
Args:
row (int): in Pixel start bei 0 !!!
effect (bool, optional): zeilenweise bzw. pixelweise löschen. Defaults to False.
"""
start = row * 8 * self.MATRIX_WIDTH
ende = start + 8 * self.MATRIX_WIDTH - 1
start = row * self.MATRIX_WIDTH
ende = start + self.font_height * self.MATRIX_WIDTH - 1
print(f'clear row: {row} --> pixels {start} to {ende}')
for i in range(start, ende):