From 4dc0f50583c72517014422eb8cf4b4d70a4d0984 Mon Sep 17 00:00:00 2001 From: Blackaddr Date: Mon, 28 Nov 2022 09:42:41 -0500 Subject: [PATCH] fixup --- .../Multiverse_BasicDemo/Multiverse_BasicDemo.ino | 11 ++++++++++- src/peripherals/BAPhysicalControls.cpp | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/Tests/Multiverse_BasicDemo/Multiverse_BasicDemo.ino b/examples/Tests/Multiverse_BasicDemo/Multiverse_BasicDemo.ino index 743ad49..a57e523 100644 --- a/examples/Tests/Multiverse_BasicDemo/Multiverse_BasicDemo.ino +++ b/examples/Tests/Multiverse_BasicDemo/Multiverse_BasicDemo.ino @@ -10,6 +10,16 @@ * - Control the 128x64 pixel OLED display (connected to SPI0) * - Use the 8MB external SRAM (simple memory test) * + * REQUIREMENTS: + * This demo for Multiverse uses its OLED display which requires several Arduino + * libraries be downloaded first. The SH1106 library is modifed to work with Teensy + * and must be downloaded from the AlgorhythmTechnologies github. + * + * Adafruit_BusIO : https://github.com/adafruit/Adafruit_BusIO + * Adafruit_GFX_Library : https://github.com/adafruit/Adafruit-GFX-Library + * Adafruit_SH1106 : https://github.com/AlgorhythmTechnologies/Adafruit_SH1106 + * + * * USAGE INSTRUCTIONS * - Use the 'Gain' knob to control the input gain on the codec. See checkPot(). * - Use the 'Level' knob to control output volume with an AudioMixer4 object. @@ -17,7 +27,6 @@ * - Encoder push-button switches will write status to display when pressed/released * - Encoder rotary control will adjust a positive/negative count and update display */ - #include #include #include "BALibrary.h" diff --git a/src/peripherals/BAPhysicalControls.cpp b/src/peripherals/BAPhysicalControls.cpp index 0d83693..8fc909a 100644 --- a/src/peripherals/BAPhysicalControls.cpp +++ b/src/peripherals/BAPhysicalControls.cpp @@ -337,7 +337,7 @@ void Potentiometer::setChangeThreshold(float changeThreshold) Potentiometer::Calib Potentiometer::calibrate(uint8_t pin) { Calib calib; - if (!Serial) { return; } // this function REQUIRES Serial port connection + if (!Serial) { return calib; } // this function REQUIRES Serial port connection // Flush the serial port input buffer while (Serial.available() > 0) {}