File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ def imageToRGB565LE(image: Image):
196196 rgb565 = (r << 11 ) | (g << 5 ) | b
197197
198198 # serialize to little-endian
199- return rgb565 .newbyteorder ('<' ).tobytes ()
199+ return rgb565 .astype ('<u2 ' ).tobytes ()
200200
201201 def DisplayPILImage (
202202 self ,
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ uptime~=3.0.1 # For System Uptime
1212
1313# Efficient image serialization
1414numpy ~= 1.24.4 ; python_version < "3.9" # For Python 3.8 max.
15- numpy ~= 1.26.4 ; python_version >= "3.9" # For Python 3.9+
15+ numpy ~= 2.0.0 ; python_version == "3.9" # For Python 3.9, only numpy 2.0.x is supported as 2.1 only supports Python >=3.10
16+ numpy ~= 2.0 ; python_version >= "3.10" # For Python >=3.10, any numpy 2.x is fine
1617
1718# For Nvidia GPU on all platforms
1819GPUtil ~= 1.4.0 ; python_version < "3.12"
You can’t perform that action at this time.
0 commit comments