File Exchange

image thumbnail

MCP4725 12-bit DAC I2C Block for Arduino Due

version 1.0.3 (23.7 KB) by MOHD ISKANDAR PUTRA AZAHAR


Updated 08 Nov 2020

View Version History

View License

Step by Step:

*Noted that the AVR library (Arduino UNO, MEGA, NANO, etc) is not the same as the SAM library (Arduino Due).

1) Copy Wire.h and Wire.cpp to the working folder

2) Copy Twi.h and Twi.c to the working folder

3) Build the S-Function
4) Change "MPC4725_DUE_wrapper.c" to "MPC4725_DUE_wrapper.cpp"
5) add " extern "C" " before void in "MPC4725_DUE_wrapper.cpp" file
6) Deploy and Run the Code into the MCU

Cite As

MOHD ISKANDAR PUTRA AZAHAR (2021). MCP4725 12-bit DAC I2C Block for Arduino Due (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!