adafruit / Adafruit_Python_PlatformDetect

MIT License
59 stars 236 forks source link

Add Orange Pi 5 Plus to board detection #327

Closed Barbarian-5215 closed 10 months ago

Barbarian-5215 commented 10 months 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 10 months 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 10 months ago

I made the needed changes in platform detect.