-
Notifications
You must be signed in to change notification settings - Fork 258
Module refactor #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module refactor #56
Conversation
Which boards have you tested this with? |
Hey! I actually tested it on my linux machine but not on any board. If you want me to I can test it on my boards. It should actually work on all boards since the refactor is only moving constants to other modules and no logic have been changed rather that the |
@makermelissa i think test this on a Pi, and maybe with an FT232H? that gets you two different techniques |
Here is the output from the recently added Orange Pi Plus 2E: root@orangepiplus2e:/workspace/Adafruit_Python_PlatformDetect# git pull
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 26 (delta 10), reused 19 (delta 6), pack-reused 0
Unpacking objects: 100% (26/26), done.
From https://github.com/yeyeto2788/Adafruit_Python_PlatformDetect
* [new branch] module_refactor -> origin/module_refactor
Already up to date.
root@orangepiplus2e:/workspace/Adafruit_Python_PlatformDetect# git checkout module_refactor
Branch 'module_refactor' set up to track remote branch 'module_refactor' from 'origin'.
Switched to a new branch 'module_refactor'
root@orangepiplus2e:/workspace/Adafruit_Python_PlatformDetect# python3
Python 3.7.3 (default, Apr 3 2019, 05:39:12)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adafruit_platformdetect
>>> detector = adafruit_platformdetect.Detector()
>>> detector.board.id
'ORANGE_PI_PLUS_2E'
>>> detector.chip.id
'SUN8I'
>>> detector.board.any_embedded_linux
True
>>> If desired I can test it on other boards. |
I just want to point out that I'm working on the changes in Blinka since this will affect it. Changing things like the line 33 on import adafruit_platformdetect.board as ap_board to import adafruit_platformdetect.constants.boards as ap_board As far as I could see these are the following modules needed to be change in blinka:
So IMHO there is no hurry delivering this to PyPi |
Ok, just found my ft232h board. I'll test this today. |
Tested successfully on a Raspberry Pi 4B and the FT232H on a windows computer. |
@yeyeto2788, should we wait on your Blinka changes before merging this or do you think this will break something? |
Hey @makermelissa, yes I would recommend to wait for it. I'll create the PR in a few minutes. |
As commented in issue #55