Skip to main content

Python-native implementation of LdcnLib

Project description

Python-native implementation of LdcnLib

This is a basic python-native implementation of LdcnLib. It implements some Ldcn and stepper methods. It solely relies on the package pyserial.

Ldcn methods

The following Ldcn methods were implemented.

Method Description
LdcnHardReset Resets all devices (broadcast)
LdcnSendCmd Send command to device
LdcnInit Initialize network using default group 0xFF
LdcnShutdown Stop motor, delete devices (reinit necessary)
LdcnGetDeviceId Returns device, devid for addr
LdcnGetDevice Returns device for addr
LdcnGetStat Returns device status
LdcnGetStatItems Returns configured statusitems
LdcnReadStatus Reads local device status

Stepper methods

The following Stepper methods were implemented.

Method Description
GetSteppers Returns addresses of discovered stepper devices
StepStopMotor Setup stop behaviour
StepSetParam Sets motor operation parameters
StepLoadTraj Set-up and start movement
StepResetPos Reset motor position to 0

Usage

To find out how the methods are used, either check LdcnLib documentation or example given in demo.py.

Disclaimer

Usage at your own risk, the implementation is neither complete nor well tested.

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

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

Source Distribution

pyldcn-0.4.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

pyldcn-0.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyldcn-0.4.tar.gz.

File metadata

  • Download URL: pyldcn-0.4.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyldcn-0.4.tar.gz
Algorithm Hash digest
SHA256 f5ff4916a866f67d2d1928e06270f90b7f2ad66519a54b697e26b89b7739b7fe
MD5 cc1299b2ea61dd65d7f9662b18b9b399
BLAKE2b-256 141b711e805ca3f928a76bd4733036179f9740f0a83adbbf82b872be485e8322

See more details on using hashes here.

File details

Details for the file pyldcn-0.4-py3-none-any.whl.

File metadata

  • Download URL: pyldcn-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyldcn-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1271b6a3fa8f119aa12786c0e77dbc301ccb552918de0c31df93e9b73eb70ca5
MD5 a0cf46f1ce6122c0b32ea56174509b42
BLAKE2b-256 08fb766bc02ba7a8b40f89aa5e4d103993096630b922250e3e86d364d39e7167

See more details on using hashes here.

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