Skip to content

Commit a938188

Browse files
authored
Update Display_LVGL_Font.py
1 parent aa83302 commit a938188

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Fruit_Jam/CircuitPython_DVI_Video/Display_LVGL_Font.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
current_y = char_height
7676
current_line_start = 0
7777

78-
def create_char_label(font, chr, x, y):
78+
def create_char_label(thefont, ch, x, y):
7979
"""Helper function to create character labels with error handling"""
8080
try:
81-
return label.Label(font, text=chr, color=0xFFFFFF, x=x, y=y)
81+
return label.Label(thefont, text=ch, color=0xFFFFFF, x=x, y=y)
8282
except Exception as e:
83-
print(f"Error creating label for '{chr}': {e}")
83+
print(f"Error creating label for '{ch}': {e}")
8484
return None
8585

8686
# Add first line number
@@ -149,8 +149,8 @@ def create_char_label(font, chr, x, y):
149149

150150
# Progress indicator for debugging
151151
if char_code % 32 == 0:
152-
# pylint: disable=f-string-without-interpolation
153-
print(f"Processed up to character {char_code}, memory: {gc.mem_free()}")
152+
msg = f"Processed up to character {char_code}, memory: {gc.mem_free()}" # pylint: disable=f-string-without-interpolation
153+
print(msg)
154154

155155
print(f"\nCompleted character display:")
156156
print(f"Found {displayed_count - skipped_count} characters with glyphs")

0 commit comments

Comments
 (0)