move pin defined to ini

This commit is contained in:
interfisch 2025-01-29 19:09:36 +01:00
parent 9ecc68b215
commit 3ce29a4e29
2 changed files with 12 additions and 11 deletions

View file

@ -21,3 +21,13 @@ monitor_speed=115200
lib_deps =
waspinator/AccelStepper@^1.64
build_flags =
-D EN_PIN=D0
-D TILT_STEP_PIN=D8
-D TILT_DIR_PIN=D3
-D ENDSTOP_TILT=A0
-D PAN_STEP_PIN=D7
-D PAN_DIR_PIN=D4
-D ENDSTOP_PAN=D5
-D PIN_LIGHT=D6

View file

@ -6,17 +6,6 @@
// https://learn.watterott.com/de/silentstepstick/pinconfig/tmc2130/
#define EN_PIN D0
#define TILT_STEP_PIN D8
#define TILT_DIR_PIN D3
#define ENDSTOP_TILT A0
#define PAN_STEP_PIN D7
#define PAN_DIR_PIN D4
#define ENDSTOP_PAN D5
#define PIN_LIGHT D6
// Motor / Hardware Configuration
int microsteppingPan = 4;
@ -273,6 +262,8 @@ bool home(bool direction,bool endstop, uint8_t& homestage, Stepper s){
stepper=&stepperPan;
}else if (s==TILT) {
stepper=&stepperTilt;
}else{
return false;
}
switch (homestage){