|
7 months ago | |
---|---|---|
configs | 7 months ago | |
output | 7 months ago | |
.gitignore | 7 months ago | |
MikesServoMapper.py | 7 months ago | |
Pipfile | 7 months ago | |
Pipfile.lock | 7 months ago | |
README.md | 7 months ago | |
main.py | 7 months ago |
A simple command line utility to map servos to
Written and tested using the Adafruit I2C servo driver board: PCA9685
Python's requirements are handled by pipenv, which you can install like so:
sudo apt install pipenv
or
sudo dnf install pipenv
Once installed, you can have pipenv install all python requirements like so:
pipenv install
cd to this repo's directory and execute using:
pipenv run python3 main.py
You can specify desired mapping names by adding the --name argument, as many times as you wish:
$ pipenv run python3 main.py --name Leg --name Arm
You can specify a yaml configuration file to load with this argument, like so:
$ 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:
names:
- Manny
- Moe
- Jack