Browse Source

Merge pull request #321 from johnp789/orangepi3b

Add Orange Pi 3B
pull/322/head
Melissa LeBlanc-Williams 1 year ago
committed by GitHub
parent
commit
f3da6190b2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions
  1. +6
    -0
      adafruit_platformdetect/board.py
  2. +2
    -0
      adafruit_platformdetect/constants/boards.py

+ 6
- 0
adafruit_platformdetect/board.py View File

@ -373,6 +373,8 @@ class Board:
board = boards.ORANGE_PI_2
elif board_value == "orangepi3":
board = boards.ORANGE_PI_3
elif board_value == "orangepi3b":
board = boards.ORANGE_PI_3B
elif board_value == "orangepi3-lts":
board = boards.ORANGE_PI_3_LTS
elif board_value == "orangepi4":
@ -427,6 +429,8 @@ class Board:
board_value = self.detector.get_device_model()
if "Orange Pi 5" in board_value:
return boards.ORANGE_PI_5
if "Orange Pi 3B" in board_value:
return boards.ORANGE_PI_3B
return None
def _sama5_id(self) -> Optional[str]:
@ -552,6 +556,8 @@ class Board:
board = boards.LUBANCAT1
if board_value and "Radxa CM3 IO" in board_value:
board = boards.RADXA_CM3
if board_value and "Rockchip RK3566 OPi 3B" in board_value:
board = boards.ORANGE_PI_3B
return board
def _rk3568_id(self) -> Optional[str]:


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

@ -57,6 +57,7 @@ ORANGE_PI_ZERO_PLUS_2H5 = "ORANGE_PI_ZERO_PLUS_2H5"
ORANGE_PI_ZERO_PLUS = "ORANGE_PI_ZERO_PLUS"
ORANGE_PI_ZERO_2 = "ORANGE_PI_ZERO_2"
ORANGE_PI_3 = "ORANGE_PI_3"
ORANGE_PI_3B = "ORANGE_PI_3B"
ORANGE_PI_3_LTS = "ORANGE_PI_3_LTS"
ORANGE_PI_4 = "ORANGE_PI_4"
ORANGE_PI_4_LTS = "ORANGE_PI_4_LTS"
@ -248,6 +249,7 @@ _ORANGE_PI_IDS = (
ORANGE_PI_ZERO_PLUS,
ORANGE_PI_ZERO_2,
ORANGE_PI_3,
ORANGE_PI_3B,
ORANGE_PI_3_LTS,
ORANGE_PI_4,
ORANGE_PI_4_LTS,


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