Skip to content

Commit e098de0

Browse files
committed
Support BananaPi P2 Pro
This adds support for BananaPi P2 Pro, at least how I need it to work...
1 parent 9adc42e commit e098de0

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ def _armbian_id(self) -> Optional[str]:
484484
board = boards.BANANA_PI_AI2N
485485
elif board_value == "bananapiai2h":
486486
board = boards.BANANA_PI_AI2H
487+
elif board_value == "bananapip2pro":
488+
board = boards.BANANA_PI_P2_PRO
487489
elif board_value == "orangepizeroplus2-h5":
488490
board = boards.ORANGE_PI_ZERO_PLUS_2H5
489491
elif board_value == "orangepizeroplus":

adafruit_platformdetect/constants/boards.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
BANANA_PI_F5 = "BANANA_PI_F5"
9090
BANANA_PI_AI2N = "BANANA_PI_AI2N"
9191
BANANA_PI_AI2H = "BANANA_PI_AI2H"
92+
BANANA_PI_P2_PRO = "BANANA_PI_P2_PRO"
9293

9394
# LeMaker boards
9495
LEMAKER_BANANA_PRO = "LEMAKER_BANANA_PRO"

0 commit comments

Comments
 (0)