adafruit / Adafruit_Python_PlatformDetect

MIT License
59 stars 239 forks source link

Add Orange Pi 5 Plus to board detection #327

Closed Barbarian-5215 closed 12 months ago

Barbarian-5215 commented 1 year ago

Following existing patterns, I added logic to handle the new board. I verified the literal values with the /etc/armbian-release file.

makermelissa commented 1 year ago

It looks like you will need to add ORANGE_PI_5_PLUS as a constant to https://github.com/adafruit/Adafruit_Python_PlatformDetect/blob/main/adafruit_platformdetect/constants/boards.py

I would also check for "Orange Pi 5 Plus" before "Orange Pi 5" or else it will incorrectly be detected as ORANGE_PI_5.

Barbarian-5215 commented 12 months ago

I made the needed changes in platform detect.