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.3.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file DAC43608-0.2.3.tar.gz
.
File metadata
- Download URL: DAC43608-0.2.3.tar.gz
- Upload date:
- Size: 3.6 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 | 31acf52c9e08d1907d5ea047e0ea1ce2c24818b73ad6a60ad1923cc4c69e6a55 |
|
MD5 | e3623947d778cf0e26bf7295c73ce75d |
|
BLAKE2b-256 | 9042ad0c8b1845991decadb9cc8e41b55ca3e70d922fa28d4b9a80663f074441 |
File details
Details for the file DAC43608-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: DAC43608-0.2.3-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 | a46f3585ac68dbe72ea7cf7838d4edb6c7100c1922c8de330a5fdff87dbf3a10 |
|
MD5 | df3ad7f4d85c45a1acfed59eac894494 |
|
BLAKE2b-256 | aecdbc2339229c0f7a5400bd5fe6574211edc35ffaec0678eb517b9e1f2febff |