CircuitPython helper library for DC & Stepper Motor FeatherWing, Shield, and Pi Hat kits.
Project description
Introduction
CircuitPython helper library for the DC & Stepper Motor FeatherWing, Shield and Pi Hat kits.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install adafruit-circuitpython-motorkit
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-motorkit
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-motorkit
Usage Example
DC motor example:
import time
from adafruit_motorkit import MotorKit
kit = MotorKit()
kit.motor1.throttle = 1.0
time.sleep(0.5)
kit.motor1.throttle = 0
Stepper motor example:
import time
from adafruit_motorkit import MotorKit
kit = MotorKit()
for i in range(100):
kit.stepper1.onestep()
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit_circuitpython_motorkit-1.6.15.tar.gz
.
File metadata
- Download URL: adafruit_circuitpython_motorkit-1.6.15.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ea358463919eec4e279e2042bb72a6df89a389f7260c29db127ddbbab807f8 |
|
MD5 | ff31f7c1acc5028fce5174e1cbec0f0b |
|
BLAKE2b-256 | 1fd9c7801437e27d9a542f9136d94292cb569eb6be11b448d55ac258677452ae |
File details
Details for the file adafruit_circuitpython_motorkit-1.6.15-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_motorkit-1.6.15-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d884309c4d52dd5acc494fa10124703deebff4660160354b04345029dae42470 |
|
MD5 | 68cbd885371ad63bc2c74d24f0a18f82 |
|
BLAKE2b-256 | 59e2b129fe006054779f9af6df43322da4961f8d9456bae889258f2db6d2ca1a |