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.2.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file DAC43608-0.2.2.tar.gz
.
File metadata
- Download URL: DAC43608-0.2.2.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 | b27dd24ee6e8c9f929f98197a39351405edd107d405f6d0af340ba0253bb1a23 |
|
MD5 | 20fc72160ffeb24652b0c20b4f0a68be |
|
BLAKE2b-256 | 3bf9d350d4c7b3d8aeeed8abf06182aaa5a0a826d7797c2c3a85132c5d3ee4b0 |
File details
Details for the file DAC43608-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: DAC43608-0.2.2-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 | 763148b49dbbe550b0a4388b393324028ea5dc8821aefb0cb11f6e700b3dc5fd |
|
MD5 | 0f120d413c88ac1e54449f141902c6e8 |
|
BLAKE2b-256 | b26ab66c4fd8b3a39c6e34d01bf8194d6745283b0c59cfa051e4e8b383efce56 |