diff --git a/src/display_manager.py b/src/display_manager.py index 1f3d20ad..53d25963 100644 --- a/src/display_manager.py +++ b/src/display_manager.py @@ -254,6 +254,10 @@ class DisplayManager: text_width = width x = (self.matrix.width - text_width) // 2 + # Set default y position if not provided + if y is None: + y = 0 # Default to top of display + # Draw the text if isinstance(current_font, freetype.Face): self._draw_bdf_text(text, x, y, color)