-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Iodevices example #133
base: master
Are you sure you want to change the base?
Iodevices example #133
Conversation
Added: - non-uart DCMotors (Medium and Train) - non-uart Light - SPIKE 3x3 Color Matrix - SPIKE Small Angular Motor
see pupdevice.rst for description. A lot of dynamic features for more advanced programming
pulling in changes from port_info.py
I will look at the failed linter tomorrow. |
Thanks for the submission. For larger scripts like these, it may be better to submit it to the pybricks-projects repository. Feel free to post it as an issue there first, so we can help you find a good location for it. |
Fixed the first batch of lint errors
My thinking was that this script is a more extended version of the iodevices example. from pybricks.pupdevices import * is not allowed? |
2nd batch of lint errors
changed the "from pybricks.pupdevices import *" to the full list. put port list creation in GetPorts(). cleaned up ConnectToDevice() and collapsed similar code. fixed some remaining linter errors. fixed small bugs regarding DIAGNOSTICS_PERIOD and DCMotor. added IMU to the diagnostics. satisfy linter
4723f33
to
39d38d2
Compare
linter
55fbd0c
to
8133c71
Compare
The linting errors are fixed now and I have taken another look at pybricks-projects. Since it is built upon the iodevices module I think it fits best in the api. I do agree it is a large script though, but I am not sure if scrolling is a problem for users. If it is, a scroll box with copy button as for projects scripts: |
A related but more advanced diagnostics script.