ServoArray: Pluggable servomotor driver library
Project description
servoarray
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.7.0.tar.gz
(655.3 kB
view hashes)
Built Distributions
Close
Hashes for servoarray-0.7.0-cp37-cp37m-linux_armv6l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 882fcbe6483ebc77037a097d21afaf2d6f8428b61073ead37a4489b29fc61875 |
|
MD5 | 122c22e6268d889c082651e7d675593e |
|
BLAKE2b-256 | 4af9b4b7406c8768f7abe7adabf761e6415352c6b2d8b1c1765b36304c811f32 |
Close
Hashes for servoarray-0.7.0-cp36-cp36m-linux_armv6l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd3c54070d3658ab694c55fdb385ae82eb4a961a7125c39af28a0730e3591e41 |
|
MD5 | 61b47482a985fb28b4054b0439d22166 |
|
BLAKE2b-256 | 0ea0d03b39bcd6b961df64452e35697b22f67a3a57863b4876ecbdeae0f8307c |
Close
Hashes for servoarray-0.7.0-cp35-cp35m-linux_armv6l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f145229df82bb5969e4e83363f759422e66e43bbf7135671acf4ee6a553fd6b3 |
|
MD5 | 226cec99a16d43dde49b547df8a1556c |
|
BLAKE2b-256 | facc6b12552e8ea98dc82fb67424fdd7a38e2cc980aca619f406fd077cf1fc62 |