Browse Source

added support for orange pi 5 max

pull/380/head
Erik 2 weeks ago
parent
commit
36e0c4f1b7
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      adafruit_platformdetect/board.py
  2. +1
    -0
      adafruit_platformdetect/constants/boards.py

+ 4
- 0
adafruit_platformdetect/board.py View File

@ -494,6 +494,10 @@ class Board:
def _orange_pi_id(self) -> Optional[str]:
board_value = self.detector.get_device_model()
if "OPi 5 Max" in board_value:
return boards.ORANGE_PI_5_MAX
if "Orange Pi 5 Max" in board_value:
return boards.ORANGE_PI_5_MAX
if "Orange Pi 5 Plus" in board_value:
return boards.ORANGE_PI_5_PLUS
if "Orange Pi 5" in board_value:


+ 1
- 0
adafruit_platformdetect/constants/boards.py View File

@ -66,6 +66,7 @@ ORANGE_PI_3_LTS = "ORANGE_PI_3_LTS"
ORANGE_PI_4 = "ORANGE_PI_4"
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
ORANGE_PI_5 = "ORANGE_PI_5"
ORANGE_PI_5_MAX = "ORANGE_PI_5_MAX"
ORANGE_PI_5_PLUS = "ORANGE_PI_5_PLUS"
# Nano Pi boards


|||||||
x
 
000:0
Loading…
Cancel
Save