From ede342fb1f1af0c38184348cb91a738f2c6d115b Mon Sep 17 00:00:00 2001 From: Oleksiy Date: Thu, 3 Aug 2023 17:27:26 +0300 Subject: [PATCH] saving recorded sequence to eeprom --- Software/Gravity/Interactions.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Software/Gravity/Interactions.ino b/Software/Gravity/Interactions.ino index 4101913..7d42ded 100644 --- a/Software/Gravity/Interactions.ino +++ b/Software/Gravity/Interactions.ino @@ -240,9 +240,11 @@ void checkInputs() { //shift button if (!digitalRead(SHIFT_BTN_PIN) && !shiftBtnPushed) { shiftBtnPushed = true; + if (isRecording) { //Live triggering + digitalWrite(outsPins[displayTab - 1], HIGH); + } if (displayScreen == 1 && !isRecording) { patternToEdit[stepNumSelected] = !patternToEdit[stepNumSelected]; - saveState(); } else if (displayScreen == 1 && isRecording && !recordToNextStep) { //Recording patternToEdit[currentStep] = 1; } else if (displayScreen == 1 && isRecording && recordToNextStep && currentStep != 15) { @@ -250,6 +252,7 @@ void checkInputs() { } else if (displayScreen == 1 && isRecording && recordToNextStep && currentStep == 15) { patternToEdit[0] = 1; } + saveState(); updateScreen(); } else if (digitalRead(SHIFT_BTN_PIN) && shiftBtnPushed) { shiftBtnPushed = false;