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])
dac.power_down(dac.B)
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.4.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file DAC43608-0.2.4.tar.gz
.
File metadata
- Download URL: DAC43608-0.2.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 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 | b2045ba7a54fd5bef0bfcd7f0662ab8d4e097c4b91e5d52a32478ce4fc747818 |
|
MD5 | d75041f27cd92db3e6bea3b8eaa01824 |
|
BLAKE2b-256 | f6df3da6e02b670b4e80f5852c3115822c500d5d1e2fc69528443da3b4535fae |
File details
Details for the file DAC43608-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: DAC43608-0.2.4-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.5.0 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 | 5c6ca056ec0706a4bf55172136d2ce8beb23284031218580c07b1e6e2ffaf50d |
|
MD5 | d2765a02702b6554bcabddf84038aff7 |
|
BLAKE2b-256 | cbcde9260c4b46fa561fbc08c0d22bf4b63178da576f2c116ee0074fca63fd85 |