A python wrapper for interacting with the DAC43608
Project description
DAC43608
Python library for the DAC43608
Installation
You will need python3
first, install with
sudo apt update
sudo apt install -y python3-pip
Install the library with:
pip3 install DAC43608
Simple usage
from DAC43608 import DAC43608
dac = DAC43608()
# turn on channel A
dac.power_up(dac.A)
# set channel A to 75% of reference voltage
dac.set_intensity_to(dac.A, 0.75)
# power up all channels:
dac.power_up_all()
# power down all
dac.power_down_all()
# write to a channel B
dac.write_dac_B([0x08, 0x04])
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
DAC43608-0.2.1.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file DAC43608-0.2.1.tar.gz
.
File metadata
- Download URL: DAC43608-0.2.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd76320c3fbac3ea7db5a4a909603d09ac4091bf02f0037c194746e33e0ae2b6 |
|
MD5 | 2131b39aedbc1ef16ced0a5ff6dbbcef |
|
BLAKE2b-256 | 92a710ce5037a0af3fb4f65ab2f02608919a7cc60d9ce9c34cf5ca8acb86c594 |
File details
Details for the file DAC43608-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: DAC43608-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf6bb7aa39c2e67b1f19b0ffb88d0698341044fd9a04a3616c212c02dd2be65 |
|
MD5 | bb099111e485698787374d08d357ca81 |
|
BLAKE2b-256 | 305708c0205e12c604b2790b676a1f5ed815b96cc563010b430a37e5f41db220 |