Robot Kit
Project description
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 are some short examples of how to use the module.
from robot_kit.leds import NeoPixelStrip
from robot_kit.wheels import Wheels
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()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
robot_kit-0.1.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for robot_kit-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c1f70f9e4debebae084ac87739df174da6f1b8de22371cff5c2cff996f952b |
|
MD5 | e22e63236c48ab447816847adae0dd19 |
|
BLAKE2b-256 | 0dd04e4d5ad71efee1e8cc3f2631be00e22ce34fbe9819bc29b0f4d6365444a6 |