Merge pull request #26 from makermelissa/main

Use new platform detect feature to see if board is Pi5
This commit is contained in:
Melissa LeBlanc-Williams 2025-03-04 12:17:25 -08:00 committed by GitHub
commit 9358afeb47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -697,6 +697,14 @@ class Shell:
detector = adafruit_platformdetect.Detector()
return detector.board.id
@staticmethod
def is_pi5_or_newer():
"""
Use PlatformDetect to check if this is a Raspberry Pi 5 or newer
"""
detector = adafruit_platformdetect.Detector()
return detector.board.any_raspberry_pi_5_board
@staticmethod
def get_architecture():
"""