Datasheet

CircuitPython Code
It's easy to use the MCP4725 digital to analog converter with CircuitPython and the Adafruit CircuitPython
MCP4725 module. This module allows you to easily write Python code that controls the output voltage from the DAC.
First wire up a MCP4725 to your board exactly as shown on the previous pages for Arduino using an I2C connection.
Here's an example of wiring a Feather M0 to the sensor with I2C:
Board 3V to sensor VIN
Board GND to sensor GND
Board SCL to sensor SCL
Board SDA to sensor SDA
Next you'll need to install the Adafruit CircuitPython MCP4725 library on your CircuitPython board. Make sure you are
running the latest version of Adafruit CircuitPython for your board before starting..
You'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle. For example the Circuit Playground Express guide has a great
page on how to install the library bundle for both express and non-express boards.
Remember for non-express boards like the Trinket M0, Gemma M0, and Feather/Metro M0 basic you'll need to
manually install the necessary libraries from the bundle:
adafruit_mcp4725.mpy
You can also download the adafruit_mcp4725.mpy from its releases page on Github.
Before continuing make sure your board's lib folder or root filesystem has the adafruit_mcp4725.mpy file copied over.
Next connect to the board's serial REPL so you are at the CircuitPython >>> prompt.
© Adafruit Industries https://learn.adafruit.com/mcp4725-12-bit-dac-tutorial Page 9 of 14