Hi I have to use some DAC's from Adafruit on a project but the DUE does not like the library...It is such a short library code that I thought maybe one of you could help spot the problem for me.Thanks in Advance!

This is a library for the Adafruit MCP4725 breakout----> https://www.adafruit.com/products/???Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

This is an example sketch for the Adafruit MCP4725 breakout board ----> https://www.adafruit.com/products/???

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!*//**************************************************************************/#include <Wire.h>#include <Adafruit_MCP4725.h>

Adafruit_MCP4725 dac;

void setup(void) { Serial.begin(9600); Serial.println("Hello!");

// For Adafruit MCP4725A1 the address is 0x62 (default) or 0x63 (ADDR pin tied to VCC) // For MCP4725A0 the address is 0x60 or 0x61 // For MCP4725A2 the address is 0x64 or 0x65 dac.begin(0x62);

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

If you are not trying to push the frequency capabilities of the units you should be able to just use these at the 100 KHz transfer rate instead of 400 KHz by commenting out the three lines that reference TWBR. Obviously this will take about 4 times as long to transfer data to the DAC but it may meet your needs.

It looks like this is all defined in hardware/arduino/sam/system/CMSIS/Device/ATMEL/sam3xa/include/component/component_twi.hfor the Due, down around line 95.