Crates.io | dac_lib_mcp4725 |
lib.rs | dac_lib_mcp4725 |
version | 0.1.0 |
source | src |
created_at | 2024-10-29 01:48:57.461431 |
updated_at | 2024-10-29 01:48:57.461431 |
description | A driver for the MCP4725 DAC module. |
homepage | |
repository | https://github.com/jake-g00dwin/dac_lib_mcp4725 |
max_upload_size | |
id | 1426315 |
size | 13,925 |
A rust library for the MCP4725 DAC module
The library has been tested manually using a breakout board and 3.3v input for the supply. Output for 4095 yields near full voltage on the output pin.
The MCP4725 is a 12bit Digital to Analog converter with built in EEPROM memory.
I2C Speeds:
Connections:
OUT:: Signal Output Analog voltage GND:: Signal Output Ground SCL:: I2C Clock SDA:: I2C Data VCC:: Supply voltage 2.7v to 5.5v GND:: Ground
There are two ways to add the crate/repo to your project. You can use the github URL or you can add it via the normal crates name(TBD).
Cargo.toml
dac_lib_mcp4725 = {git = 'https://github.com/jake-g00dwin/dac_lib_mcp4725'}
To run the tests for the project after downloading or cloning the repo
cargo test
If you want to contribute to it feel free to open up a pull-request or make a new github issue.
This is published under the BSD-3-Clause license. So you can pretty much do whatever you want with it for business stuff or anything else.