feature to set feedrate

This commit is contained in:
2019-07-30 21:56:09 +03:00
parent f1c26251f6
commit de36bbbd4b
5 changed files with 29 additions and 15 deletions

View File

@@ -7,7 +7,7 @@
#include "common/Commands.h"
#include "common/Status.h"
int curRPM = DEF_RPM;
int curRPM = defRPM;
int adjustDelay = 100;
bool needAdjust;
@@ -95,6 +95,10 @@ void execCommand() {
}
}
if (!isnan(command.arg4)) {
curRPM = command.arg4;
}
adjustRPM();
}
@@ -113,7 +117,7 @@ void setup() {
OCR2A = 250;
TCCR2A |= (1 << WGM20) | (1 << CS22);
TIMSK2 |= (1 << OCIE2A);
servoStepper.setPos(X_LIMIT);
servoStepper.setPos(xLimit);
pen.init();
}