From a4c6325cff64fd168738c83ae530d62c0b8d4a5d Mon Sep 17 00:00:00 2001 From: Reza Nasab <49108667+reza-n@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:45:40 -0800 Subject: [PATCH] Update rgb.py fixing an issue when 4 values are returned instead of r/g/b --- adafruit_rgb_display/rgb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_rgb_display/rgb.py b/adafruit_rgb_display/rgb.py index a874201..c039b34 100644 --- a/adafruit_rgb_display/rgb.py +++ b/adafruit_rgb_display/rgb.py @@ -56,7 +56,7 @@ def color565( package namespace.""" if isinstance(r, (tuple, list)): # see if the first var is a tuple/list if len(r) >= 3: - red, g, b = r + red, g, b = r[0:3] else: raise ValueError( "Not enough values to unpack (expected 3, got %d)" % len(r)