From 46b01dd070b52a0db6ff9d7849eb2c4bae75243d Mon Sep 17 00:00:00 2001 From: Steve Lascos Date: Sun, 17 Sep 2017 20:03:43 -0400 Subject: [PATCH] Added description to header of TGA_Pro_demo.ino --- examples/TGA_Pro_demo/TGA_Pro_demo.ino | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/examples/TGA_Pro_demo/TGA_Pro_demo.ino b/examples/TGA_Pro_demo/TGA_Pro_demo.ino index fb10b74..2e0f94e 100644 --- a/examples/TGA_Pro_demo/TGA_Pro_demo.ino +++ b/examples/TGA_Pro_demo/TGA_Pro_demo.ino @@ -1,8 +1,23 @@ +/************************************************************************* + * This demo uses the BAGuitar library to provide enhanced control of + * the TGA Pro board. + * + * The latest copy of the BA Guitar library can be obtained from + * https://github.com/Blackaddr/BAGuitar + * + * This demo will provide an audio passthrough, as well as exercise the + * MIDI interface. + * + * It can optionally exercise the SPI MEM0 if installed on the TGA Pro board. + * + */ #include #include #include #include "BAGuitar.h" +//#define ENABLE_MEM_TEST // uncomment this line to enable the memory test + using namespace BAGuitar; AudioInputI2S i2sIn; @@ -39,11 +54,12 @@ void setup() { codecControl.enable(); delay(100); - } void loop() { +#ifdef ENABLE_MEM_TEST + ////////////////////////////////////////////////////////////////// // Write test data to the SPI Memory ////////////////////////////////////////////////////////////////// @@ -96,11 +112,15 @@ void loop() { } if (spiErrorCount == 0) { Serial.println("SPI TEST PASSED!!!"); } - + +#endif /////////////////////////////////////////////////////////////////////// // MIDI TESTING + // Connect a loopback cable between the MIDI IN and MIDI OUT on the + // GTA Pro. This test code will periodically send MIDI events which + // will loop back and get printed in the Serial Monitor. /////////////////////////////////////////////////////////////////////// int type, note, velocity, channel, d1, d2;