Skip to content

Commit

Permalink
Merge pull request #345 from anonymouscowhead/add-quartz64a
Browse files Browse the repository at this point in the history
add detection of Pine64 Quartz64 model A board
  • Loading branch information
makermelissa committed Mar 4, 2024
2 parents 0bb023d + 9e3c7e6 commit 03fd0ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions adafruit_platformdetect/board.py
Expand Up @@ -579,6 +579,8 @@ def _rk3566_id(self) -> Optional[str]:
board = boards.ORANGE_PI_3B
if board_value and "Hardkernel ODROID-M1S" in board_value:
board = boards.ODROID_M1S
elif "quartz64-a" in board_value.lower():
board = boards.QUARTZ64_A
return board

def _rk3568_id(self) -> Optional[str]:
Expand Down
3 changes: 2 additions & 1 deletion adafruit_platformdetect/constants/boards.py
Expand Up @@ -189,6 +189,7 @@
PINEBOOK = "PINEBOOK"
PINEPHONE = "PINEPHONE"
SOPINE = "SOPINE"
QUARTZ64_A = "QUARTZ64_A"

RADXA_ZERO = "RADXA_ZERO"
RADXA_CM3 = "RADXA_CM3"
Expand Down Expand Up @@ -511,7 +512,7 @@
_ONION_OMEGA_BOARD_IDS = (ONION_OMEGA, ONION_OMEGA2)

# Pine64 boards and devices
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE)
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE, QUARTZ64_A)

# Pcduino baords
_PCDUINO_DEV_IDS = (PCDUINO2, PCDUINO3)
Expand Down

0 comments on commit 03fd0ea

Please sign in to comment.