did first revamp, second one fill follow shortly, implementation of the loop feature will follow after that
parent
266e27072a
commit
ca119f9815
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue