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.5.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file DAC43608-0.2.5.tar.gz
.
File metadata
- Download URL: DAC43608-0.2.5.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 | 70a3fdf9410f977b11b9ee1ce5733c0c44f55ffa326d0c9b72fd54b132df0182 |
|
MD5 | c00bea7115d8c18c80e791857ac31661 |
|
BLAKE2b-256 | 53a8943f8c907ef3e379d5b644a0fd8426f43d2fc58341eafc000529ae435c85 |
File details
Details for the file DAC43608-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: DAC43608-0.2.5-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 | 07cbd198fbb0af65b3e044d12b42a4626bc5a1b4dff5626d6c401d64b4aa7482 |
|
MD5 | 96437361dbd2ebee7801ee9e7e461543 |
|
BLAKE2b-256 | 6dbd3a28f5e51fa12436d568739a06b6da76401221526b4978bf482ad0ebb3b2 |