From 9e92e6b9c4ff0343889e63aa0c52cf877cc05841 Mon Sep 17 00:00:00 2001 From: Alexi Date: Wed, 25 Oct 2023 12:00:25 -0600 Subject: [PATCH] make work on new pi --- neopolitan/display/hardware_display.py | 2 +- neopolitan/os_detection.py | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/neopolitan/display/hardware_display.py b/neopolitan/display/hardware_display.py index 08b6c60..ece5016 100644 --- a/neopolitan/display/hardware_display.py +++ b/neopolitan/display/hardware_display.py @@ -19,7 +19,7 @@ def __init__(self, size): self.size = size # Initialize pixels - self.pixels = neopixel.NeoPixel(pinout.D10, self.size, brightness=0.01, auto_write=False) + self.pixels = neopixel.NeoPixel(pinout.D12, self.size, brightness=0.01, auto_write=False) # Initialize board self.board_display = HardwareBoardDisplay(Board(size), self.pixels, size) diff --git a/neopolitan/os_detection.py b/neopolitan/os_detection.py index b1f59bb..43fdf9e 100644 --- a/neopolitan/os_detection.py +++ b/neopolitan/os_detection.py @@ -5,7 +5,8 @@ def on_pi(): """Is this code being run on a 32 bit Raspberry Pi?""" - return (platform.machine()).strip() == 'armv7l' + return (platform.machine()).strip() == 'armv7l' \ + or (platform.machine()).strip() == 'aarch64' def log_os(): """Log whether this code is being run on a Pi""" diff --git a/pyproject.toml b/pyproject.toml index 4f28c28..d150532 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["hatchling"] build-backend = "hatchling.build" [project] name = "neopolitan" -version = "0.1.35" +version = "0.1.37" authors = [ { name = "alyo" }, ]