Code was missing “#include <pins_arduino.h>” under Libraries. For some reason copying html from the Arduino environment and pasting into wordpress will result in missing that part of the code. I have added it to the code just now. I also copied the fixed code and pasted it in a blank sketch in Arduino and compiles [...]
Archive for January 2011
Fixed a Bug in the Code (v.B06e) 23 comments
Code for Buffalo II DAC vB06e 5 comments
/*************************************************************************************************** * HIFIDUINO v. B06e * * Saturday January 8th, 2011 * * Arduino code for Buffalo II DAC and other DACs based on the Sabre32 DAC chip. This code is adapted * from an earlier version developed for the Wolfson 8741 DAC chip. For more information visit * www.hifiduino.wordpress.com or www.hifiduino.blogspot.com * * (Although this code is based on a confidential data sheet for which I’ve signed an NDA, I’ve also * requested and have received permission to publish this code). * * Change log: * v. B06e 01/08/11: Supports 32-bit I2S input in accordance to Buffalo II input wiring of SabreDAC * Rearranged code for default conditions, correct reading of sample rate in I2S * Allows manual ”best DPLL bandwidth” setting. Allows manual selection of I2S or * SPDIF. Can set default startup to I2S or SPDIF (in the code) * v. B05 11/25/10: Added remote control capability using the Apple Aluminum Remote Control. This * version enables remote volume control only. * v. B04 11/06/10: Added large numbers, tidy-up the UI, ”pulse” indicator -every time the status * information is read. Also status indicator for PCM/DSD and Signal Lock * v. B03 11/02/10: Supports s/w debounce, added setting of FIR filter, DPLL bandwidth, jitter * reduction and adjustment of LCD brightness. * v. B021 10/18/10: No new functionality, but cleaned up the code and comments. * v. B02 10/15/10: Added reading of sample rate. * v. B01 10/11/10: Volume control, LCD, Rotary Encoder. ***************************************************************************************************/ /*************************************************************************************************** * look for ”spdifStart” and set to true if you want the DAC to startup in SPDIF mode and false if * you want the DAC to startup in I2S mode * * ***************************************************************************************************/