From a114ddf24c2774b7f1b69631192e6a64465bfe11 Mon Sep 17 00:00:00 2001 From: James Carr Date: Mon, 2 Aug 2021 11:06:23 +0100 Subject: [PATCH] Remove max_size usage with displayio.Group Remove max_glyphs usage with Display_Text Label --- Matrix_On_Air/matrix_on_air.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Matrix_On_Air/matrix_on_air.py b/Matrix_On_Air/matrix_on_air.py index c6a829cf0..b6148054e 100644 --- a/Matrix_On_Air/matrix_on_air.py +++ b/Matrix_On_Air/matrix_on_air.py @@ -46,7 +46,7 @@ # --- Drawing setup --- # Create a Group -group = displayio.Group(max_size=22) +group = displayio.Group() # Create a bitmap object bitmap = displayio.Bitmap(64, 32, 2) # width, height, bit depth # Create a color palette @@ -117,15 +117,11 @@ def redraw_wings(index): # to change colors air_y = 25 -text_line1 = adafruit_display_text.label.Label( - deco_font, color=color[3], text="OFF", max_glyphs=6 -) +text_line1 = adafruit_display_text.label.Label(deco_font, color=color[3], text="OFF") text_line1.x = off_x text_line1.y = off_y -text_line2 = adafruit_display_text.label.Label( - deco_font, color=color[1], text="AIR", max_glyphs=6 -) +text_line2 = adafruit_display_text.label.Label(deco_font, color=color[1], text="AIR") text_line2.x = air_x text_line2.y = air_y