did first revamp, second one fill follow shortly, implementation of the loop feature will follow after that

master
BodgeMaster 2021-05-09 23:01:03 +02:00
parent 266e27072a
commit ca119f9815
1 changed files with 28 additions and 1 deletions

View File

@ -264,13 +264,40 @@ void getAndRunCommand(){
Serial.print((char)command); Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt(); argument0 = waitForSerialInput(2).toInt();
argument1 = waitForSerialInput(1).charAt(0); argument1 = waitForSerialInput(1).charAt(0);
runCommand2Arg('m', argument0, argument1); runCommand2Arg((char)command, argument0, argument1);
return; return;
case 'x': case 'x':
Serial.print((char)command); Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt(); argument0 = waitForSerialInput(2).toInt();
runCommand1Arg((char)command, argument0); runCommand1Arg((char)command, argument0);
return; return;
case 'a':
Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt();
runCommand1Arg((char)command, argument0);
return;
case 'r':
Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt();
runCommand1Arg((char)command, argument0);
return;
case 'w':
Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt();
argument1 = waitForSerialInput(1).charAt(0);
runCommand2Arg((char)command, argument0, argument1);
return;
case 'p':
Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt();
argument1 = waitForSerialInput(3).toInt();
runCommand2Arg((char)command, argument0, argument1);
return;
case 't':
Serial.print((char)command);
argument0 = waitForSerialInput(2).toInt();
runCommand1Arg((char)command, argument0);
return;
case 'l': case 'l':
Serial.print((char)command); Serial.print((char)command);
argument0 = waitForSerialInput(1).charAt(0); argument0 = waitForSerialInput(1).charAt(0);