I cot a custom arduino board in the mail today. The board is running an XMega128a3, and i have included a lot of libraries, including this DAC library.
I loaded the sketch, but I got an error when I tried to compile, saying;
In file included from SingleChannelDAC.ino:12:
/Users/hansi/Documents/Arduino/libraries/xmDAC/xmDAC.h:81: error: ISO C++ forbids declaration of ‘DAC_t’ with no type
/Users/hansi/Documents/Arduino/libraries/xmDAC/xmDAC.h:81: error: expected ‘;’ before ‘*’ token
I seems like there is something wrong with the library in line 81.
This line is DAC_t *dac;
I’ve tried to remove the * , and tried to replace DAC_t, but no luck.
I’ll include the library and the sketches for you, download right below
I found out there was some documentation for the library here:
xmDAC.zip (14.3 KB)