Skip to main content

ServoArray: Pluggable servomotor driver library

Project description


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

Pluggable servomotor driver library


Boost.Filesystem is required

pip install servoarray


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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for servoarray, version 0.7.0
Filename, size & hash File type Python version Upload date
servoarray-0.7.0-cp35-cp35m-linux_armv6l.whl (308.0 kB) View hashes Wheel cp35
servoarray-0.7.0-cp36-cp36m-linux_armv6l.whl (308.0 kB) View hashes Wheel cp36
servoarray-0.7.0-cp37-cp37m-linux_armv6l.whl (308.0 kB) View hashes Wheel cp37
servoarray-0.7.0.tar.gz (655.3 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page