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.3.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.3-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: delimux-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fd9b71806b7354da282c0f8227c6363a71aefca7edd769fb2b4136ca6a80e024
MD5 a494af094b664238f2155239873f500d
BLAKE2b-256 7c088458d4eddf0c3ff48b206871784a684fc638e64cd11c0bd33e3c50bf878a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: delimux-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c1e6dabb3d8987ee5fc9fc2de4400b6a98dba86238b9e0d3203e63cce1c377a
MD5 c67fcddc795405c398ee756724fc90d0
BLAKE2b-256 4f214a968598e86ffd66cc784fced7589bcb8d97c4466e5a772146496169f4ef

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