Metadata-Version: 2.1
Name: robot-kit
Version: 0.1.2
Summary: Robot Kit
Home-page: https://github.com/SuperCowPowers/robot_kit
Author: Brian Wylie
Author-email: briford@supercowpowers.com
License: Apache
Keywords: Robotics,Python
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Description-Content-Type: text/markdown
Requires-Dist: smbus
Requires-Dist: adafruit-circuitpython-neopixel

# 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
```


