From 8d6f3c94166c8c46187e59a3b596b423f9d1faee Mon Sep 17 00:00:00 2001 From: Blackaddr Date: Sat, 10 Apr 2021 19:36:02 -0400 Subject: [PATCH] cleanup --- .../Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino | 1 - .../TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino | 14 ++++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino b/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino index 851a116..1251fdd 100644 --- a/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino +++ b/examples/Delay/SoundOnSoundDemo/SoundOnSoundDemo.ino @@ -126,7 +126,6 @@ void setup() { // Setup MIDI MIDI.begin(MIDI_CHANNEL_OMNI); MIDI.setHandleControlChange(OnControlChange); - usbMIDI.setHandleControlChange(OnControlChange); // Configure the LED to indicate the gate status diff --git a/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino b/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino index c5dfb4d..3b1fc55 100644 --- a/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino +++ b/examples/Tests/TGA_PRO_Basic_Test/TGA_PRO_Basic_Test.ino @@ -7,7 +7,6 @@ * - Audio INPUT and OUTPUT JACKS * - Midi INPUT and Midi OUTPUT jacks * - MEM0 (if installed) - * - MEM1 (if installed) * - User LED * * This will also test the Expansion Control Board (if installed): @@ -42,9 +41,9 @@ * */ -#define RUN_MIDI_TEST // Uncomment this line to run a MIDI test. You must connect a MIDI cable as a loopback between the MIDI input and output jacks. -#define RUN_MEMO_TEST // Uncomment this line if you purchased the option SPI RAM. -#define RUN_EXP_TEST // Uncomment if you purchased the Expansion Control Board +//#define RUN_MIDI_TEST // Uncomment this line to run a MIDI test. You must connect a MIDI cable as a loopback between the MIDI input and output jacks. +//#define RUN_MEMO_TEST // Uncomment this line if you purchased the option SPI RAM. +//#define RUN_EXP_TEST // Uncomment if you purchased the Expansion Control Board #include #include "BALibrary.h" @@ -101,7 +100,10 @@ void setup() { AudioMemory(64); codec.enable(); codec.setHeadphoneVolume(0.8f); // Set headphone volume +#if defined(RUN_EXP_TEST) configPhysicalControls(controls, codec); + Serial.println("Now monitoring for input from Expansion Control Board"); +#endif // Run the initial Midi connectivity and SPI memory tests. #if defined(RUN_MIDI_TEST) @@ -114,10 +116,6 @@ void setup() { spiMem0.begin(); delay(10); if (spiTest(&spiMem0, 0)) { Serial.println("SPI0 testing PASSED!");} #endif - -#if defined(RUN_EXP_TEST) - Serial.println("Now monitoring for input from Expansion Control Board"); -#endif } void loop() {