v.0.2.2 NeoPixel_64x64.write_text wieder Pixel weise
This commit is contained in:
@@ -136,7 +136,6 @@ class NeoPixel_64x64(NeoPixel):
|
||||
char_data = self.selected_font[letter]
|
||||
char_width = get_char_width(letter)
|
||||
|
||||
print(letter)
|
||||
for row in range(self.font_height):
|
||||
row_data = char_data[row]
|
||||
|
||||
@@ -351,11 +350,8 @@ class NeoPixel_64x64(NeoPixel):
|
||||
err += dx
|
||||
y1 += sy
|
||||
|
||||
def write_text(self, text: str, xpos: int, line_no: int, color=WHITE) -> None:
|
||||
"""Textausgabe in Zeile line_no"""
|
||||
self.draw_text(
|
||||
text, xpos * (self.font_width + 1), line_no * (self.font_height + 1), color
|
||||
) # Pixel setzen
|
||||
def write_text(self, text: str, xpos: int, ypos: int, color=WHITE) -> None:
|
||||
self.draw_text(text, xpos, ypos, color) # Pixel setzen
|
||||
self.write() # und anzeigen
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user