From dd749fb0c278112722a8a5f42e4fdd2644215b2b Mon Sep 17 00:00:00 2001 From: rdagger Date: Mon, 1 Jul 2024 11:10:52 -0700 Subject: [PATCH] Standardize hex value formatting for consistency --- ili9341.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ili9341.py b/ili9341.py index 50609c2..86482ae 100644 --- a/ili9341.py +++ b/ili9341.py @@ -624,7 +624,7 @@ class Display(object): b_color = ((background & 0xFF) << 8) | ((background & 0xFF00) >> 8) fbuf.fill(b_color) # Swap text color bytes to correct for framebuf endianness - t_color = ((color & 0x00FF) << 8) | ((color & 0xFF00) >> 8) + t_color = ((color & 0xFF) << 8) | ((color & 0xFF00) >> 8) fbuf.text(text, 0, 0, t_color) if rotate == 0: self.block(x, y, x + w - 1, y + (h - 1), buf)