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 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"