Skip to content

Commit

Permalink
Merge pull request #8 from jefftranter/mr-save-presets
Browse files Browse the repository at this point in the history
Support saving of presets 1 through 4 by pressing keys Q, W, E, or R
Not an ideal UI but better than none at all
  • Loading branch information
lpaseen authored Jul 12, 2017
2 parents 06d1e6d + 9b557b2 commit be75478
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions myEnigma/myEnigma.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4293,6 +4293,18 @@ void loop() {
delay(2000);
decimalPoint(1,false);
break;

case 'Q': // save preset 1 - 4
case 'W':
case 'E':
case 'R':
char strBuffer[] = "PR X";
strBuffer[3] = '0' + key;
displayString(strBuffer, 0);
saveSettings(key);
delay(2000);
break;

} // switch
for (i=0;i<sizeof(prevRamState);i++){HT.displayRam[i]=prevRamState[i];} // Restore current state
HT.sendLed();
Expand Down

0 comments on commit be75478

Please sign in to comment.