This commit is contained in:
Mike
2020-07-26 07:40:36 +01:00
parent e8ef1e0b11
commit f126373371
4 changed files with 330 additions and 9 deletions

View File

@@ -7,13 +7,22 @@ Written and tested using the Adafruit I2C servo driver board: [PCA9685](https://
## Requiremments
* ```pipenv```
### Python Requirements
## Installation
Python's requirements are handled by pipenv, which you can install like so:
cd to this repo's directory and install pip dependencies with:
```bash
sudo apt install pipenv
```
or
```bash
sudo dnf install pipenv
```
```pipenv install```
Once installed, you can have pipenv install all python requirements like so:
1. cd to this repo's directory
2. Execute the command: ```pipenv install```
## Execution
@@ -23,6 +32,30 @@ cd to this repo's directory and execute using:
## Command Line Arguments
TODO
### ***--name*** (Specify one or more mapping names)
You can specify desired mapping names by adding the ***--name*** argument, as many times as you wish:
```bash
$ pipenv run python3 main.py --name Leg --name Arm
```
### ***--config*** (Specify an input config file)
You can specify a yaml configuration file to load with this argument, like so:
```bash
$ pipenv run python3 main.py --config /path/to/config.yaml
```
So far the config file is only good for storing desired names to be mapped. Here's an example:
```yaml
names:
- Manny
- Moe
- Jack
```