Skip to content

Commit

Permalink
Merge pull request #144 from Neradoc/bitmap-color-depth
Browse files Browse the repository at this point in the history
Accept 65536 colors bitmaps
  • Loading branch information
FoamyGuy authored Jan 17, 2025
2 parents 145e02d + 20bf5dd commit 0fb73ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions displayio/_bitmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def __init__(self, width: int, height: int, value_count: int):
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:
Expand Down

0 comments on commit 0fb73ea

Please sign in to comment.