# MCP4725 12-bit I²C DAC Driver library

**URL:** https://forum.xod.io/t/mcp4725-12-bit-i-c-dac-driver-library/492
**Category:** Look What I’ve Done
**Created:** [February 11, 2018, 8:34pm UTC](https://forum.xod.io/t/mcp4725-12-bit-i-c-dac-driver-library/492 "2018-02-11T20:34:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)
#### Post date: [February 11, 2018, 8:34pm UTC](https://forum.xod.io/t/mcp4725-12-bit-i-c-dac-driver-library/492/1 "2018-02-11T20:34:51Z")

</div>

[https://xod.io/libs/e/mcp4725/](https://xod.io/libs/e/mcp4725/)  
The library has a single node:  
 ![23%20](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/567516cf1f016929299b50ca6ffa1dd54fd3fe84.png)  
For [this](https://www.adafruit.com/product/935) or similar breakout boards.  
Made an additional LFO for my Arturia Microbrute with it, pretty happy with the results so far.

---

<div class="post-metadata">

### Author: ![stevielaner7777](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/stevielaner7777/32/3781_2.png) [@stevielaner7777](https://forum.xod.io/u/stevielaner7777)
#### Post date: [June 1, 2023, 8:29am UTC](https://forum.xod.io/t/mcp4725-12-bit-i-c-dac-driver-library/492/2 "2023-06-01T08:29:03Z")

</div>

Hi evgenykochetkov,

I was happily using your wonderful Library for a torque controlled servo until Xod deprecated the else if(byte) node causing the dac to no longer connect via i2c, Xod recomment: “Use the generic `xod/core/if-else` instead”, however simply swapping out the node and keeping the input values does not solve the problem… As I am not familiar with writing libraries I have hit a wall with this problem.

Could you offer any advice?

Kind regards

Steve
