From a48271c9119177209859fc4f41a6f0a0e3cab775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Santisi?= Date: Mon, 6 Dec 2021 12:47:21 +0000 Subject: [PATCH] Making Stickler happy --- library/ST7735/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ST7735/__init__.py b/library/ST7735/__init__.py index df0724d..25022f0 100644 --- a/library/ST7735/__init__.py +++ b/library/ST7735/__init__.py @@ -119,9 +119,9 @@ def image_to_data(image): pb = image # Mask and shift the 888 RGB into 565 RGB - red = (pb[..., [0]] & 0xF8) << 8 + red = (pb[..., [0]] & 0xF8) << 8 green = (pb[..., [1]] & 0xFC) << 3 - blue = (pb[..., [2]] & 0xF8) >> 3 + blue = (pb[..., [2]] & 0xF8) >> 3 # Stick 'em together result = red | green | blue