Skip to content

Commit 8d63695

Browse files
authored
Merge pull request #615 from hchargois/numpy-2
2 parents 5204a3b + 6fbfc53 commit 8d63695

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ dmypy.json
129129
# Pyre type checker
130130
.pyre/
131131

132-
# PyCharm
132+
# Editors / IDEs
133133
.idea/
134+
.vscode/
134135

135136
# Git mergetool backup
136137
*.orig

library/lcd/lcd_comm_rev_a.py

+1-1
Original file line numberDiff line numberDiff 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,

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ uptime~=3.0.1 # For System Uptime
1212

1313
# Efficient image serialization
1414
numpy~=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
1819
GPUtil~=1.4.0; python_version < "3.12"

0 commit comments

Comments
 (0)