-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Description
Hey @ladyada, @makermelissa,
I have done a little refactor on the library so when it becomes bigger detecting more boards we don't have 10k lines modules within the library.
I have made the changes here https://github.com/yeyeto2788/Adafruit_Python_PlatformDetect/tree/module_refactor, if you wish I can make a PR with this changes.
It still works as before to save retro-compatibility issue in case there is any:
import adafruit_platformdetect
detector = adafruit_platformdetect.Detector()
detector.board.id
'GENERIC_LINUX_PC'
detector.chip.id
'GENERIC_X86'
detector.board.any_embedded_linux
False
Regards.
Metadata
Metadata
Assignees
Labels
No labels