From 361c26dc2d13c7ae1a45226f14e056ad915002a2 Mon Sep 17 00:00:00 2001 From: rdagger Date: Tue, 20 Feb 2024 14:32:32 -0800 Subject: [PATCH] Fix white in colored squares demo. --- demo_colored_squares.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/demo_colored_squares.py b/demo_colored_squares.py index c04f136..ab2de1d 100644 --- a/demo_colored_squares.py +++ b/demo_colored_squares.py @@ -28,7 +28,7 @@ LIGHT_YELLOW = const(0XFFF0) # (255, 255, 128) LIGHT_CORAL = const(0XFC10) # (255, 128, 128) LIGHT_GREEN = const(0X87F0) # (128, 255, 128) LIGHT_SLATE_BLUE = const(0X841F) # (128, 128, 255) -WHITE = const(0XFFF) # (255, 255, 255) +WHITE = const(0XFFFF) # (255, 255, 255) def test(): @@ -41,10 +41,9 @@ def test(): colors = [getattr(modules[__name__], name) for name in dir( modules[__name__]) if name.isupper() and name is not 'SPI'] - colors.sort() c = 0 - for x in range(0, 240, 48): - for y in range(0, 320, 64): + for y in range(0, 320, 64): + for x in range(0, 240, 48): display.fill_rectangle(x, y, 47, 63, colors[c]) c += 1 sleep(9)