From d0a4ff5b3c2e950d3237390c910920ed36f3c2e9 Mon Sep 17 00:00:00 2001 From: Steve Lascos Date: Fri, 12 Oct 2018 08:59:23 -0400 Subject: [PATCH] By default TGA_PRO_MEM2_EXP doesn't run midi/mem tests, you must uncomment them --- examples/Tests/TGA_PRO_MEM2_EXP/PhysicalControls.cpp | 4 ++++ examples/Tests/TGA_PRO_MEM2_EXP/TGA_PRO_MEM2_EXP.ino | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/Tests/TGA_PRO_MEM2_EXP/PhysicalControls.cpp b/examples/Tests/TGA_PRO_MEM2_EXP/PhysicalControls.cpp index 3ed1e89..99fbd0c 100644 --- a/examples/Tests/TGA_PRO_MEM2_EXP/PhysicalControls.cpp +++ b/examples/Tests/TGA_PRO_MEM2_EXP/PhysicalControls.cpp @@ -72,6 +72,10 @@ void checkSwitch(unsigned id) ledHandle = led1Handle; } + if (controlPtr->isSwitchToggled(swHandle)) { + Serial.println(String("Button ") + id + String(" pressed")); + } + bool pressed = controlPtr->isSwitchHeld(swHandle); controlPtr->setOutput(ledHandle, pressed); } diff --git a/examples/Tests/TGA_PRO_MEM2_EXP/TGA_PRO_MEM2_EXP.ino b/examples/Tests/TGA_PRO_MEM2_EXP/TGA_PRO_MEM2_EXP.ino index ba1660e..7eed6a0 100644 --- a/examples/Tests/TGA_PRO_MEM2_EXP/TGA_PRO_MEM2_EXP.ino +++ b/examples/Tests/TGA_PRO_MEM2_EXP/TGA_PRO_MEM2_EXP.ino @@ -42,9 +42,9 @@ * */ -#define RUN_MIDI_TEST // Comment out or delete this line to skip the MIDI test. -#define RUN_MEMO_TEST // Comment out or delete this line to skip the MEM0 test. -#define RUN_MEM1_TEST // (Teensy 3.5/3/6 only!) Comment out or delete this line to skip the MEM1 test. +//#define RUN_MIDI_TEST // Uncomment this line to skip the MIDI test. +//#define RUN_MEMO_TEST // Uncomment this line to skip the MEM0 test. +//#define RUN_MEM1_TEST // (Teensy 3.5/3/6 only!) Comment out or delete this line to skip the MEM1 test. #include