Added Teensy internal DAC output option and set defaut output.

pull/4/head
dronus 5 years ago
parent e6fa885be8
commit 34e8433916
  1. 6
      MicroDexed.ino
  2. 8
      config.h

@ -80,6 +80,10 @@ AudioOutputI2S i2s1;
AudioConnection patchCord11(volume_r, 0, i2s1, 0); AudioConnection patchCord11(volume_r, 0, i2s1, 0);
AudioConnection patchCord12(volume_l, 0, i2s1, 1); AudioConnection patchCord12(volume_l, 0, i2s1, 1);
AudioControlWM8731master wm8731_1; AudioControlWM8731master wm8731_1;
#elif defined(TEENSY_DAC)
AudioOutputAnalogStereo dacOut;
AudioConnection patchCord11(volume_r, 0, dacOut, 0);
AudioConnection patchCord12(volume_l, 0, dacOut, 1);
#else #else
AudioOutputPT8211 pt8211_1; AudioOutputPT8211 pt8211_1;
AudioConnection patchCord11(volume_r, 0, pt8211_1, 0); AudioConnection patchCord11(volume_r, 0, pt8211_1, 0);
@ -190,6 +194,8 @@ void setup()
wm8731_1.enable(); wm8731_1.enable();
wm8731_1.volume(1.0); wm8731_1.volume(1.0);
Serial.println(F("TGA board enabled.")); Serial.println(F("TGA board enabled."));
#elif defined(TEENSY_DAC)
Serial.println(F("Internal DAC enabled."));
#else #else
Serial.println(F("PT8211 enabled.")); Serial.println(F("PT8211 enabled."));
#endif #endif

@ -51,9 +51,11 @@
#define MIDI_DEVICE_NUMBER 0 #define MIDI_DEVICE_NUMBER 0
// AUDIO // AUDIO
// If nothing is defined PT8211 is used as audio output device! // If nothing is defined Teensy internal DAC is used as audio output device!
#define TEENSY_AUDIO_BOARD 1 // Left and right channel audio signal is presented on pins A21 and A22.
//#define TGA_AUDIO_BOARD #define TEENSY_DAC
// #define TEENSY_AUDIO_BOARD 1
// #define TGA_AUDIO_BOARD
//************************************************************************************************* //*************************************************************************************************
//* MIDI SETTINGS //* MIDI SETTINGS

Loading…
Cancel
Save