-
i ve never really heard of splines library, i might look at it, though.
-
getting rid of the
if(digitalRead(xStopMin) == HIGH){
xIs0 = true;
xPos = 0;
Serial.println("xMin");
}
else xIs0 = false;
parts of your code and using interrupts instead. maybe making the switch case part of your code smaller would make it run faster. but serial data is stored in a hardware buffer until Serial.read is called, so it wouldnt matter...i think?