From 84de562c4467c7646044faab481ea28807db7a1e Mon Sep 17 00:00:00 2001 From: Hugo Chargois Date: Tue, 10 Dec 2024 00:11:59 +0100 Subject: [PATCH 1/2] Add .vscode to .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 759c61ef..2db619f0 100644 --- a/.gitignore +++ b/.gitignore @@ -129,8 +129,9 @@ dmypy.json # Pyre type checker .pyre/ -# PyCharm +# Editors / IDEs .idea/ +.vscode/ # Git mergetool backup *.orig From 6fbfc534f19b993c9b60d15e55af400b904cea04 Mon Sep 17 00:00:00 2001 From: Hugo Chargois Date: Tue, 10 Dec 2024 00:01:37 +0100 Subject: [PATCH 2/2] Update numpy to v2 --- library/lcd/lcd_comm_rev_a.py | 2 +- requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/lcd/lcd_comm_rev_a.py b/library/lcd/lcd_comm_rev_a.py index cbf3f006..33d9b45a 100644 --- a/library/lcd/lcd_comm_rev_a.py +++ b/library/lcd/lcd_comm_rev_a.py @@ -196,7 +196,7 @@ def imageToRGB565LE(image: Image): rgb565 = (r << 11) | (g << 5) | b # serialize to little-endian - return rgb565.newbyteorder('<').tobytes() + return rgb565.astype('= "3.9" # For Python 3.9+ +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 +numpy~=2.0; python_version >= "3.10" # For Python >=3.10, any numpy 2.x is fine # For Nvidia GPU on all platforms GPUtil~=1.4.0; python_version < "3.12"