]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
Merge pull request #144 from Neradoc/bitmap-color-depth 2.1.3
authorfoamyguy <foamyguy@gmail.com>
Fri, 17 Jan 2025 16:27:33 +0000 (10:27 -0600)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2025 16:27:33 +0000 (10:27 -0600)
Accept 65536 colors bitmaps

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: