//================================================================================
// LEADSCREW
//
// Define the type and pitch of leadscrew you have in your lathe. If you have an
// imperial leadscrew, define LEADSCREW_TPI. If you have a metric leadscrew,
// define LEADSCREW_HMM (pitch in hundredths of a millimeter). Do not define
// both.
//================================================================================
// For Imperial leadscrews: pitch in Threads Per Inch (TPI)
#define LEADSCREW_TPI 10
// For metric leadscrews: pitch in hundredths of a millimeter (HMM)
// Example: 200hmm = 2mm
//#define LEADSCREW_HMM 200
//================================================================================
// STEPPER/SERVO
//
// Define the number of steps and microsteps for your stepper motor, the pin
// polarity of the driver, and whether to use additional features, like servo
// alarm feedback.
//
// NOTE: If you are using a servo drive with something other than a 1:1 drive
// ratio, you can use the STEPPER_MICROSTEPS to compensate. For example, if you
// have a servo configured for 1000 steps/revolution and it drives the leadscrew
// through a 3:1 reduction, you can set STEPPER_RESOLUTION to 1000 and
// STEPPER_MICROSTEPS to 3.
//================================================================================
// Steps and microsteps
#define STEPPER_MICROSTEPS 6
#define STEPPER_RESOLUTION 500
// Separate step and microstep settings for feed rates. Redefine these if your
// lathe has a separate feed drive train with a different ratio.
#define STEPPER_MICROSTEPS_FEED 10
#define STEPPER_RESOLUTION_FEED STEPPER_RESOLUTION
// Step, direction and enable pins are normally active-high
// #define INVERT_STEP_PIN true
// #define INVERT_DIRECTION_PIN true
#define INVERT_ENABLE_PIN true
#define INVERT_ALARM_PIN true
// Enable servo alarm feedback
#define USE_ALARM_PIN
//================================================================================
// ENCODER
//
// Define the type of encoder you are using on the spindle. The firmware assumes
// the encoder is turning at a 1:1 ratio with the spindle.
//
// NOTE: the firmware is concerned with the quadrature edge count, which is
// four times the number of pulses. For example, if you have a 1024 P/R
// encoder, you need to enter 4096 here.
//================================================================================
// Encoder resolution (counts per revolution)
#define ENCODER_RESOLUTION 4096
// Which encoder input to use
#define ENCODER_USE_EQEP1
//#define ENCODER_USE_EQEP2