Skip to main content

API for the delimux device

Project description

README

Installation

pip install digipigi

How to use and characteristics

The digipigi can be used via the module digipigi.

The usage is very simple:

import digipigi
help(digipigi.DigiPigi)
dp=digipigi.DigiPigi(HOST='hostname')
att=dp.setAttenuation(0)

This sets the digipot to attenuate the singal by a factor att.

In order to give a feeling for the performance of the digipigi, we provide here a plot of the attenuation factor as calibrated for a DC input signal:

DC Calibration

For three wiper positions we also show the time trace of attenuated square wave signal:

AC Calibration

The odd square wave length is due to my inability to time the recording of the ad2 via its API properly.

Installation of pip package:

First pip install build and pip install twine. Then set the environment variables`

export TWINE_USERNAME="__token__"
export TWINE_PASSWORD="API_KEY" 

Then build the package while you are in the driectory resources/python/digipigi/

python -m build

Then upload the package to your PyPi accounty by

twine upload dist/* --non-interactive

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

delimux-0.0.5.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delimux-0.0.5-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file delimux-0.0.5.tar.gz.

File metadata

  • Download URL: delimux-0.0.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for delimux-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f63c4ba4bf526371fba7f3da578db00727add6d76e779f8b86ea02b56194afe5
MD5 ca8761bc88f371c8bb1d595676627557
BLAKE2b-256 e49ce79ed888045da1fe33f2ea7c9721b8a9f7c3fca55061f66865bcf31bcc2a

See more details on using hashes here.

File details

Details for the file delimux-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: delimux-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for delimux-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b92cbacf1e20080f8c54c32004c328dfd75b0f54a4f68f2ae6f7cf4e48c5c81d
MD5 bb86a83bc088711278438cca5973bc52
BLAKE2b-256 5f19197fabfa7f121fe07e6c9ff006a0e6014e68ff67e8790c434545d859fa65

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