]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
accept 65536 colors bitmaps
authorNeradoc <neraOnGit@ri1.fr>
Wed, 15 Jan 2025 18:48:42 +0000 (19:48 +0100)
committerNeradoc <neraOnGit@ri1.fr>
Wed, 15 Jan 2025 18:48:42 +0000 (19:48 +0100)
displayio/_bitmap.py

index 07eb7af8f4ddaba8cc31bed289b7051a8da9b030..a0d1229b5b672e754cf35039489c8792e1f9e3a2 100644 (file)
@@ -57,8 +57,8 @@ class Bitmap:
         the Bitmap.
         """
 
-        if not 1 <= value_count <= 65535:
-            raise ValueError("value_count must be in the range of 1-65535")
+        if not 1 <= value_count <= 65536:
+            raise ValueError("value_count must be in the range of 1-65536")
 
         bits = 1
         while (value_count - 1) >> bits: