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.1.tar.gz (2.1 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.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: delimux-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 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.1.tar.gz
Algorithm Hash digest
SHA256 fad7423079fdbf9f6880dd42ee4b7bd822c4894b018b559dafa8bc10c1a23d5b
MD5 8ed3cca8ddf53e183d54b6969cc8f10d
BLAKE2b-256 14466ea8b1a3770155a8a12881fda5bed53bc8b6fbed5aad485fc173c58cb2db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: delimux-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a50873f494c2cd76ac27cc22206ba5ee9d26a80194f115301e676fad5f2ab1b3
MD5 a8876f52c3f4783075e0595fb0d2e428
BLAKE2b-256 572dfe72c4a11072de690254881ef8b9fdaca6a36063ae2532720ee753950403

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