From d4f09c574d9ec59a0398a8e4557c7d3d9773d145 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 7 Jun 2018 14:39:04 +0200 Subject: [PATCH] Added bank switching by master key. --- MicroDexed.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MicroDexed.ino b/MicroDexed.ino index 05b837c..ad0bb8b 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -308,6 +308,12 @@ bool handle_master_key(uint8_t data) Serial.print(F("Volume changed to: ")); Serial.println(num * 0.1, DEC); } + else if (num > 10 && num <= 20) + { + bank=num-11; + Serial.print(F("Bank switch to: ")); + Serial.println(bank, DEC); + } } return (false); }