pi-top-Python-SDK
pi-top-Python-SDK copied to clipboard
pi-top's Python SDK (pitop package)
``` pi-top devices hub reboot pi-top devices hub shutdown ```
From ``` from pitop.robotics.drive_controller import DriveController ``` to ``` from pitop.robotics import DriveController ```
This seems to be most evident when using the CLI: ``` pi@pi-top:~ $ pi-top devices hub Matplotlib is building the font cache; this may take a moment. ``` Interestingly, this...
`api_pma_components` is missing an IMU reference. Example exists though: https://github.com/pi-top/pi-top-Python-SDK/blob/master/examples/pma/imu.py
e.g. PULSE compatibility with pi-top [4]
e.g. using servo's smooth acceleration mode e.g. using miniscreen pixel inversion (draw black onto white)
``` pi@pi-top:~ $ time pi-top devices hub --name-only Matplotlib is building the font cache; this may take a moment. pi-top [4] real 0m18.715s user 0m7.799s sys 0m2.242s ``` ``` pi@pi-top:~...
``` from imutils import grab_contours ``` imports `cv2` module, it isn't wrapped in a `try/except` block. This breaks the 'OpenCV as a soft dependency' paradigm. ``` Traceback (most recent call...
e.g. ``` pi-top [4] Expansion Plate (v22.0 sch3)
[`PyInquirer`](https://medium.com/geekculture/build-interactive-cli-tools-in-python-47303c50d75) can be used to build interactive CLIs. This would be very useful for the `pi-top` command, as there are many subsystem calls and parameters. Not specifying these can instead...