|
@@ -28,12 +28,13 @@
|
28
|
28
|
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
|
29
|
29
|
#endif
|
30
|
30
|
|
31
|
|
-#define BOARD_NAME "Azteeg X3 Pro"
|
32
|
|
-
|
33
|
|
-#if !PIN_EXISTS(CASE_LIGHT) // doesn't already exist so OK to change the definition coming
|
34
|
|
- #define OK_TO_CHANGE_CASE_LIGHT // in from from the include file
|
|
31
|
+#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
|
32
|
+ #define CASE_LIGHT_PIN 44 // must define it here or else RAMPS will define it
|
35
|
33
|
#endif
|
36
|
34
|
|
|
35
|
+
|
|
36
|
+#define BOARD_NAME "Azteeg X3 Pro"
|
|
37
|
+
|
37
|
38
|
#include "pins_RAMPS.h"
|
38
|
39
|
|
39
|
40
|
#ifndef __AVR_ATmega2560__
|
|
@@ -144,19 +145,16 @@
|
144
|
145
|
//
|
145
|
146
|
// Misc. Functions
|
146
|
147
|
//
|
147
|
|
-#if ENABLED(OK_TO_CHANGE_CASE_LIGHT)
|
|
148
|
+#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && defined(DOGLCD_A0) && DOGLCD_A0 == CASE_LIGHT_PIN
|
148
|
149
|
#undef DOGLCD_A0 // steal pin 44 for the case light; if you have a Viki2 and have connected it
|
149
|
150
|
#define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
|
150
|
|
- // as the wiring diagram uses pin 44 for DOGLCD_A0
|
151
|
|
-
|
152
|
|
- #undef CASE_LIGHT_PIN
|
153
|
|
- #define CASE_LIGHT_PIN 44 // must have a hardware PWM
|
|
151
|
+ // as the wiring diagram uses pin 44 for DOGLCD_A0
|
154
|
152
|
#endif
|
155
|
153
|
|
156
|
154
|
//
|
157
|
155
|
// M3/M4/M5 - Spindle/Laser Control
|
158
|
156
|
//
|
159
|
|
-#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
|
|
157
|
+#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3pro board
|
160
|
158
|
#undef SPINDLE_LASER_ENABLE_PIN
|
161
|
159
|
#undef SPINDLE_DIR_PIN
|
162
|
160
|
|