Skip to main content

ServoArray: Pluggable servomotor driver library

Project description

servoarray

Travis (.org) PyPI PyPI - License C++

Pluggable servomotor driver library

Install

Boost.Filesystem is required

pip install servoarray

Usage

from servoarray import ServoArray

sa = ServoArray()
# You can specify driver name and parameters directly though it is not recommended
# sa = ServoArray("pca9685", {"bus": 1, "address": 0x40, "min_pulse": 150, "max_pulse": 600})

# Now you can set a radian value to the servo
sa[0] = 3.14 / 2  # Max
sa[0] = -3.14 / 2 # Min

# Slicing and reverse indexing are supported as the normal list
sa[:] = [0] * len(sa)
print(sa[-1])

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

servoarray-0.6.1.tar.gz (653.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page