Example of using I2C on an Arduino Due to control an MCP4725 digital-to-analog converter. This example is with the Zephyr OS.
Arduino Due | MCP4725 |
---|---|
TWICK0 10 PWMH | SCL |
TWD0 9 | SDA |
GND | A0 |
GND | Vss |
5 Volts | Vdd |
This project outputs a square wave on the Vout pin of the MCP4725. To make the project enter the following:
$ cd mcp4725-zephyr
$ make
You should see a square wave on the output pin of the MCP4725.