Skip to content

Commit

Permalink
make work on new pi
Browse files Browse the repository at this point in the history
  • Loading branch information
alyoshenka committed Oct 25, 2023
1 parent afaba7a commit 9e92e6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neopolitan/display/hardware_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 2 additions & 1 deletion neopolitan/os_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "neopolitan"
version = "0.1.35"
version = "0.1.37"
authors = [
{ name = "alyo" },
]
Expand Down

0 comments on commit 9e92e6b

Please sign in to comment.