MCP4725 Breakout Board library not working with DUE

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
fxmech
 
Posts: 90
Joined: Fri Mar 09, 2012 12:19 pm

MCP4725 Breakout Board library not working with DUE

Post by fxmech »

Hi I bought 10 of these DAC modules and was trying to use your library but it will not compile.

I get the following error:

C:\Users\fxmech\Documents\Arduino\libraries\Adafruit_MCP4725\Adafruit_MCP4725.cpp: In member function 'void Adafruit_MCP4725::setVoltage(uint16_t, bool)':
C:\Users\fxmech\Documents\Arduino\libraries\Adafruit_MCP4725\Adafruit_MCP4725.cpp:67: error: 'TWBR' was not declared in this scope


I am using the arduino DUE so I need to use Arduino 1.5.4 to upload to it.
I tried using 1.5.4 but specifying the arduino as an UNO and it will compile OK... just the DUE is the issue...
Any ideas why it wont work and if there is a way around it???

Thanks

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: MCP4725 Breakout Board library not working with DUE

Post by Franklin97355 »

Perhaps the library has not yet been updated for the Due.
Check this post forums.adafruit.com/viewtopic.php?f=25&t=37834

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”