Hello,
My project leverages STL5000 audio shields and I sample audio data. I included the files I need from the audio library for i2S , the shields, and patchCords without including the whole <Audio.h>. This is because I do NOT wish to include the disk stuff (in fact it gets in the way of another disk library I use instead - Bill Greimans SdFat 1.0.3).
What I observe is that the compiler links in the whole Audio library, which includes the SD library (undesirable for me).
Is there a way to stop this (automatically including the SD library) from happening?
My includes:
and in another file:
the entire code (5 files) is here should that be helpful.
snippets from my output:
My project leverages STL5000 audio shields and I sample audio data. I included the files I need from the audio library for i2S , the shields, and patchCords without including the whole <Audio.h>. This is because I do NOT wish to include the disk stuff (in fact it gets in the way of another disk library I use instead - Bill Greimans SdFat 1.0.3).
What I observe is that the compiler links in the whole Audio library, which includes the SD library (undesirable for me).
Is there a way to stop this (automatically including the SD library) from happening?
My includes:
Code:
#include "input_i2s_quad.h"
#include "output_i2s_quad.h"
#include "control_sgtl5000.h"
#include "record_queue.h"
and in another file:
Code:
#include <SPI.h>
#include "SdFat.h"
#include "FreeStack.h"
the entire code (5 files) is here should that be helpful.
snippets from my output:
Code:
Using library SPI at version 1.0 in folder: C:\Program Files\Arduino\hardware\teensy\avr\libraries\SPI
Using library SdFat at version 1.0.3 in folder: C:\Program Files\Arduino\libraries\SdFat
Using library Audio at version 1.3 in folder: C:\Program Files\Arduino\hardware\teensy\avr\libraries\Audio
Using library Wire at version 1.0 in folder: C:\Program Files\Arduino\hardware\teensy\avr\libraries\Wire
Using library SD at version 1.1.1 in folder: C:\Program Files\Arduino\hardware\teensy\avr\libraries\SD
Using library SerialFlash at version 0.5 in folder: C:\Program Files\Arduino\hardware\teensy\avr\libraries\SerialFlash