Closed michaelstoops closed 7 months ago
Sure, done.
mstoops@bpro ~/git/Adafruit_Python_PlatformDetect
% python -m pylint adafruit_platformdetect
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
mstoops@bpro ~/git/Adafruit_Python_PlatformDetect
% python -m black adafruit_platformdetect
All done! ✨ 🍰 ✨
7 files left unchanged.
mstoops@bpro ~/git/Adafruit_Python_PlatformDetect
% python ./bin/detect.py
Board Detection Test
Check that the Chip and Board IDs match your board and that this it is
correctly detecting whether or not it is a Linux board.
Chip id: A20
Board id: LEMAKER_BANANA_PRO
Linux Detection
---------------
Is this an embedded Linux system? True
Raspberry Pi Boards
-------------------
Is this a Pi 3B+? False
Is this a Pi 4B? False
Is this a 40-pin Raspberry Pi? False
Is this a Raspberry Pi Compute Module? False
Other Boards
-------------------
Is this a Siemens Simatic IOT2000 Gateway? False
Is this a 96boards board? False
Is this a BeagleBone board? False
Is this a Giant board? False
Is this a Coral Dev board? False
Is this a MaaXBoard? False
Is this a SiFive board? False
Is this a PYNQ board? False
Is this a Rock Pi board? False
Is this a NanoPi board? False
Is this a Khadas VIM3 board? False
Is this a Clockwork Pi board? False
Is this a Seeed Board? False
Is this a UDOO board? False
Is this an ASUS Tinker board? False
Is this an STM32MP1 board? False
Is this a MilkV board? False
Is this a generic Linux PC? False
Is this an OS environment variable special case? False
LeMaker board detected.
It looks like Banana Pro was previously supported, but for Armbian in particular. It looked like
_allwinner_variants_id
was the right place for adding the detection, so I did.This shows the SBC host I'm using:
Here's the data I used for the board detection:
Here's my dev environment:
pylint results:
Black results:
detect.py
after my changes:Previously, detect.py crashed as a result of board ID being
None
. I didn't grab a screenshot.