Browse Source

MaaXBoard and MaaXBoard Mini are both detected

pull/192/head
zebular13 2 months ago
parent
commit
3b13324ba0
3 changed files with 13 additions and 0 deletions
  1. +4
    -0
      adafruit_platformdetect/board.py
  2. +7
    -0
      adafruit_platformdetect/constants/boards.py
  3. +2
    -0
      bin/detect.py

+ 4
- 0
adafruit_platformdetect/board.py View File

@ -334,6 +334,10 @@ class Board:
def _imx8mx_id(self):
"""Check what type iMX8M board."""
board_value = self.detector.get_device_model()
if "i.MX8MM" in board_value:
return boards.MAAXBOARD_MINI
if "i.MX8MQ" in board_value:
return boards.MAAXBOARD
if "Phanbell" in board_value:
return boards.CORAL_EDGE_TPU_DEV
return None


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

@ -147,6 +147,10 @@ UDOO_BOLT_V3 = "UDOO_BOLT_V3"
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
UDOO_X86 = "UDOO_X86"
# MaaXBoard
MAAXBOARD = "MAAXBOARD"
MAAXBOARD_MINI = "MAAXBOARD_MINI"
# Asus Tinkerboard
_ASUS_TINKER_BOARD_IDS = (ASUS_TINKER_BOARD,)
@ -453,3 +457,6 @@ _ROCK_PI_IDS = (ROCK_PI_S, ROCK_PI_4, ROCK_PI_X, ROCK_PI_E)
# UDOO
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}
# MaaXBoard boards
_MAAXBOARD_DEV_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")

+ 2
- 0
bin/detect.py View File

@ -17,6 +17,8 @@ print("Is this a BeagleBone Board?", detector.board.any_beaglebone)
print("Is this a Giant Board?", detector.board.GIANT_BOARD)
print("Is this a Coral Dev Board?", detector.board.CORAL_EDGE_TPU_DEV)
print("Is this a Coral Dev Board Mini?", detector.board.CORAL_EDGE_TPU_DEV_MINI)
print("Is this a MaaXBoard?", detector.board.MAAXBOARD)
print("Is this a MaaXBoard Mini?", detector.board.MAAXBOARD_MINI)
print("Is this a SiFive Unleashed? ", detector.board.SIFIVE_UNLEASHED)
print("Is this a PYNQ Board?", detector.board.PYNQ_Z1 | detector.board.PYNQ_Z2)
print("Is this a Rock Pi board?", detector.board.any_rock_pi_board)


Loading…
Cancel
Save