grbl: add defaults for NEJE Master 20W laser
diff --git a/grbl/defaults.h b/grbl/defaults.h
index 46fee6a..9bf737c 100644
--- a/grbl/defaults.h
+++ b/grbl/defaults.h
@@ -581,4 +581,57 @@
#define DEFAULT_HOMING_PULLOFF 1.0 // mm
#endif
+#ifdef DEFAULTS_NEJE20W
+ // Grbl default settings for NEJE Master 20W laser cutter/engraver.
+ // http://wiki.nejetool.com/doku.php?id=nejelaser_master
+ #define DEFAULT_X_STEPS_PER_MM 250.0
+ #define DEFAULT_Y_STEPS_PER_MM 250.0
+ #define DEFAULT_Z_STEPS_PER_MM 250.0
+ #define DEFAULT_X_MAX_RATE 500.0 // mm/min
+ #define DEFAULT_Y_MAX_RATE 500.0 // mm/min
+ #define DEFAULT_Z_MAX_RATE 500.0 // mm/min
+ #define DEFAULT_X_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
+ #define DEFAULT_Y_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
+ #define DEFAULT_Z_ACCELERATION (10.0*60*60) // 10*60*60 mm/min^2 = 10 mm/sec^2
+ #define DEFAULT_X_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
+ #define DEFAULT_Y_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
+ #define DEFAULT_Z_MAX_TRAVEL 200.0 // mm NOTE: Must be a positive value.
+ #define DEFAULT_SPINDLE_RPM_MAX 1000.0 // rpm
+ #define DEFAULT_SPINDLE_RPM_MIN 0.0 // rpm
+ #define DEFAULT_STEP_PULSE_MICROSECONDS 10
+ #define DEFAULT_STEPPING_INVERT_MASK 0
+ #define DEFAULT_DIRECTION_INVERT_MASK 0
+ #define DEFAULT_STEPPER_IDLE_LOCK_TIME 25 // msec (0-254, 255 keeps steppers enabled)
+ #define DEFAULT_STATUS_REPORT_MASK 1 // MPos enabled
+ #define DEFAULT_JUNCTION_DEVIATION 0.01 // mm
+ #define DEFAULT_ARC_TOLERANCE 0.002 // mm
+ #define DEFAULT_REPORT_INCHES 0 // false
+ #define DEFAULT_INVERT_ST_ENABLE 0 // false
+ #define DEFAULT_INVERT_LIMIT_PINS 0 // false
+ #define DEFAULT_SOFT_LIMIT_ENABLE 0 // false
+ #define DEFAULT_HARD_LIMIT_ENABLE 0 // false
+ #define DEFAULT_INVERT_PROBE_PIN 0 // false
+ #define DEFAULT_LASER_MODE 0 // false
+ #define DEFAULT_HOMING_ENABLE 0 // false
+ #define DEFAULT_HOMING_DIR_MASK 0 // move positive dir
+ #define DEFAULT_HOMING_FEED_RATE 25.0 // mm/min
+ #define DEFAULT_HOMING_SEEK_RATE 500.0 // mm/min
+ #define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
+ #define DEFAULT_HOMING_PULLOFF 1.0 // mm
+ // Check adc.c and adc.h for more info
+ #ifdef USE_ADC
+ #define DEFAULT_ENABLE_ADC 1 // Setting bit for marking ADC as on
+ #define DEFAULT_ADC_MODE ADC_CONFIG_MODE_SW_TRIGGER // Software triggering next conversion
+ #define DEFAULT_ADC_REFERENCE ADC_CONFIG_REFERENCE_INTERNAL_1VREF // AVcc reference input voltage
+ #define DEFAULT_ADC_READINGS 4 // Times each channel is to be read
+ #define DEFAULT_ADC_RESOLUTION 8 // Integer number of bits
+ #define DEFAULT_ADC_CLOCK 125 // Integer KHz value
+ #define DEFAULT_ADC_CHANNELS_MASK ADC_CONFIG_ENABLED_CHANNELS
+ #ifdef ADC_CONFIG_SYSTEM_ALARM
+ #define DEFAULT_ADC_RANGE_CHANNEL_8_MIN ADC_CONFIG_RANGE_CHANNEL_8_MIN // Celsius degrees
+ #define DEFAULT_ADC_RANGE_CHANNEL_8_MAX ADC_CONFIG_RANGE_CHANNEL_8_MAX // Celsius degrees
+ #endif
+ #endif
+#endif
+
#endif