main test GRBL
This commit is contained in:
parent
07528f75f2
commit
d077deb960
@ -58,10 +58,14 @@ void setup() {
|
|||||||
M5.Lcd.setCursor(50, 120);
|
M5.Lcd.setCursor(50, 120);
|
||||||
delay(1000);
|
delay(1000);
|
||||||
M5.Lcd.println("Control Motor");
|
M5.Lcd.println("Control Motor");
|
||||||
init(100, 755.906, 50);
|
init(STEPER_SPEED, STEPER_PAS, STEPER_ACC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mouveForward(int mm = 5){
|
||||||
|
char* s = "";
|
||||||
|
printf(s, "G1 X%d", mm);
|
||||||
|
_GRBL.sendGcode(s);
|
||||||
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
if (M5.BtnA.wasPressed())
|
if (M5.BtnA.wasPressed())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user