SPINDLE/LASER pins changes
This commit is contained in:
committed by
Scott Lahteine
parent
99c4900a98
commit
ffe0e2d19a
@ -28,6 +28,8 @@
|
||||
#error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
|
||||
#endif
|
||||
|
||||
#define MEGATRONICS_31
|
||||
|
||||
#if ENABLED(MEGATRONICS_31)
|
||||
#define BOARD_NAME "Megatronics v3.1"
|
||||
#else
|
||||
@ -129,6 +131,7 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 45 // try the keypad connector
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@ -164,3 +167,27 @@
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if DISABLED(REPRAPWORLD_KEYPAD) // try to use the keypad connector first
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENABLE_PIN 43 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 42
|
||||
#elif EXTRUDERS <= 2
|
||||
// try to hijack the last extruder so that we can get the PWM signal off the Y breakout
|
||||
// move all the Y signals to the E2 extruder socket - makes dual Y steppers harder
|
||||
#undef Y_ENABLE_PIN
|
||||
#undef Y_STEP_PIN
|
||||
#undef Y_DIR_PIN
|
||||
#undef E2_STEP_PIN
|
||||
#undef E2_ENABLE_PIN
|
||||
#undef E2_DIR_PIN
|
||||
#define Y_ENABLE_PIN 23
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 60
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENABLE_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user