robot_kit
Having fun with the Freenove 4WD Smart Car Kit
Install
SSH to your Raspberry Pi and install the Python module for Python 3.
$ sudo pip3 install robot_kit
Examples
See the Examples directory for all the code, here is the code listing for examples/robot_start.py
from robot_kit.leds import NeoPixelStrip
from robot_kit.wheels import Wheels
from robot_kit.ultrasonic import Ultrasonic
import time
if __name__ == '__main__':
"""Run some of the basic commands for robot_kit"""
"""Test for the NeoPixelStrip class"""
led_strip = NeoPixelStrip()
# Turn the LEDs Yellow and then Green
led_strip.on(128, 128, 0)
time.sleep(1.0)
led_strip.on(0, 255, 0)
time.sleep(1.0)
led_strip.off()
# Turn the wheels
wheels = Wheels()
wheels.all(0.25)
time.sleep(1.0)
wheels.stop()
# Get the distance from the Ultrasonic sensor
dis_sensor = Ultrasonic()
for i in range(50):
print(dis_sensor.get_distance())
time.sleep(0.5)
Note: Yon order to run this code you'll need to be sudo as the LED library requires it.
$ sudo python3 robot_start.py
Metadata
Release files for robot-kit 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| robot_kit-0.1.5.tar.gz | 7.5 kB | Without provenance | Details for robot_kit-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robot_kit-0.1.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for robot_kit-0.1.5-py2.py3-none-any.whl |
Total release size: 20.6 kB
Release files / robot_kit-0.1.5.tar.gz
| Download URL | robot_kit-0.1.5.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c00668aea2ed2631fa191697964ff99456e1e350d5854ef8951fb33ee9bcbee
|
|
BLAKE2b-256 checksum How to use checksums |
5d9f56fd7748aea1db43612bc0476edc0bca74eb4d653962e4f1824ec0d5f641
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Release files / robot_kit-0.1.5-py2.py3-none-any.whl
| Download URL | robot_kit-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b8e407389f8f8f03835fa5a581d51bfd7c00860a0547baa77cbb48b2f66765be
|
|
BLAKE2b-256 checksum How to use checksums |
14422976e536e932f5dcf80d45d6df504c93c250e87df5fc0514cf1f7875f9ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for robot-kit 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.