We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41516d6 commit 03c93a5Copy full SHA for 03c93a5
adafruit_shell.py
@@ -697,6 +697,14 @@ def get_board_model():
697
detector = adafruit_platformdetect.Detector()
698
return detector.board.id
699
700
+ @staticmethod
701
+ def is_pi5_or_newer():
702
+ """
703
+ Use PlatformDetect to check if this is a Raspberry Pi 5 or newer
704
705
+ detector = adafruit_platformdetect.Detector()
706
+ return detector.board.any_raspberry_pi_5_board
707
+
708
@staticmethod
709
def get_architecture():
710
"""
0 commit comments