Skip to main content

SSC32 controlling library

Project description

Is a simple interface for control RC servos using SSC32 controller.

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.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 #~

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

pyssc32-0.3.3.tar.bz2 (4.5 kB view details)

Uploaded Source

File details

Details for the file pyssc32-0.3.3.tar.bz2.

File metadata

  • Download URL: pyssc32-0.3.3.tar.bz2
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyssc32-0.3.3.tar.bz2
Algorithm Hash digest
SHA256 77d25d9d4e5a54fc54e9063bf954907dd9bb9550c8a0b543785fcd784f636f23
MD5 bceca81f73eb4c6f6e2b262dd099872e
BLAKE2b-256 5db41f247f95f771b1e260799d6f91487c35ea48d7c17ec52be7ed8b6d7c79b3

See more details on using hashes here.

Supported by

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