This is simple interface to control RC servos with an SSC32 board.
Features:
Direct and grouped queries (#<N>P<US> and <SERVO_POS>…T<MS>)
Angle (degrees or radians) to microsecond position calculation
Simple configuration file that help to map board output pin to servo name and provide limits.
Sequences scripts (in YAML format)
Example
>>> import ssc32
>>> import math
>>> ssc = ssc32.SSC32('/dev/ttyUSB0', 115200, count=32)
>>> ssc[2].position = 2000
>>> ssc[3].name = 'pan'
>>> ssc[4].name = 'tilt'
>>> pan_servo = ssc['pan']
>>> tilt_servo = ssc['tilt']
>>> pan_servo.degrees = 0
>>> tilt_servo.radians = math.pi/4
>>> ssc.commit(time=1000)
>>> ssc.is_done()
False
>>> ssc.is_done()
True
>>> ssc.description = 'My camera's pan/tilt'
>>> ssc.save_config('my_pantilt.cfg')
0.4.2
Change n to r to allow running on non-Windows platforms.
0.4.1
Add ssc32yaml script runner
Don’t change servo position on init (Servo.is_changed flag)
0.4.0
Servo script interface with YAML serialization/deserialization
Move to package
Depends on PyYAML
0.3.3
Rename Servo properties Servo.degree -> Servo.degrees, Servo.radian -> Servo.radians
Use callback for Servo
Description for configuration (SSC32.description) line starts with #~
Metadata
Release files for pyssc32 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyssc32-0.4.2.tar.gz | 5.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyssc32-0.4.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 14.3 kB
Release files / pyssc32-0.4.2.tar.gz
| Download URL | pyssc32-0.4.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
784167a512c761c1060440888b47ba53c5e0bbedf9b8ad574383971980c1e950
|
|
BLAKE2b-256 checksum How to use checksums |
5d9193e79420111290f76833b3df25477d46bebf96fd0ebbe1383b3857893f57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
|
Release files / pyssc32-0.4.2-py2-none-any.whl
| Download URL | pyssc32-0.4.2-py2-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ea4eec107d20a474fda4c0a701109a6929ca73ee4d2d1392c0b8288af998a4f9
|
|
BLAKE2b-256 checksum How to use checksums |
d222fbb289b0e26f3043bce6b6d0834726514c408fe78d08820808cf9110bce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
|
Security for pyssc32 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.