Browse Source

Neater Megatronics 3 pins

Scott Lahteine 7 years ago
parent
commit
1f52c9f5df
1 changed files with 21 additions and 18 deletions
  1. 21
    18
      Marlin/pins_MEGATRONICS_3.h

+ 21
- 18
Marlin/pins_MEGATRONICS_3.h View File

143
 #define BTN_ENC            33
143
 #define BTN_ENC            33
144
 
144
 
145
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
145
 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
146
+
146
   #define LCD_PINS_RS      56 // CS chip select / SS chip slave select
147
   #define LCD_PINS_RS      56 // CS chip select / SS chip slave select
147
   #define LCD_PINS_ENABLE  51 // SID (MOSI)
148
   #define LCD_PINS_ENABLE  51 // SID (MOSI)
148
   #define LCD_PINS_D4      52 // SCK (CLK) clock
149
   #define LCD_PINS_D4      52 // SCK (CLK) clock
149
   #define SD_DETECT_PIN    35
150
   #define SD_DETECT_PIN    35
151
+
150
 #else
152
 #else
153
+
151
   #define LCD_PINS_RS      32
154
   #define LCD_PINS_RS      32
152
   #define LCD_PINS_ENABLE  31
155
   #define LCD_PINS_ENABLE  31
153
   #define LCD_PINS_D4      14
156
   #define LCD_PINS_D4      14
171
 //
174
 //
172
 // M3/M4/M5 - Spindle/Laser Control
175
 // M3/M4/M5 - Spindle/Laser Control
173
 //
176
 //
174
-#if DISABLED(REPRAPWORLD_KEYPAD)     // try to use the keypad connector first
175
-  #define SPINDLE_LASER_PWM_PIN         44  // MUST BE HARDWARE PWM
176
-  #define SPINDLE_LASER_ENABLE_PIN      43  // Pin should have a pullup!
177
-  #define SPINDLE_DIR_PIN               42
177
+#if DISABLED(REPRAPWORLD_KEYPAD)       // try to use the keypad connector first
178
+  #define SPINDLE_LASER_PWM_PIN    44  // MUST BE HARDWARE PWM
179
+  #define SPINDLE_LASER_ENABLE_PIN 43  // Pin should have a pullup!
180
+  #define SPINDLE_DIR_PIN          42
178
 #elif EXTRUDERS <= 2
181
 #elif EXTRUDERS <= 2
179
-  // try to hijack the last extruder so that we can get the PWM signal off the Y breakout
180
-  // move all the Y signals to the E2 extruder socket - makes dual Y steppers harder
181
-  #undef Y_ENABLE_PIN
182
-  #undef Y_STEP_PIN
183
-  #undef Y_DIR_PIN
184
-  #undef E2_STEP_PIN
185
-  #undef E2_ENABLE_PIN
186
-  #undef E2_DIR_PIN
187
-  #define Y_ENABLE_PIN          23
188
-  #define Y_STEP_PIN            22
189
-  #define Y_DIR_PIN             60
190
-  #define SPINDLE_LASER_PWM_PIN          4  // MUST BE HARDWARE PWM
191
-  #define SPINDLE_LASER_ENABLE_PIN      17  // Pin should have a pullup!
192
-  #define SPINDLE_DIR_PIN                5
182
+  // Hijack the last extruder so that we can get the PWM signal off the Y breakout
183
+  // Move Y to the E2 plug. This makes dual Y steppers harder
184
+  #undef Y_ENABLE_PIN  //  4
185
+  #undef Y_STEP_PIN    //  5
186
+  #undef Y_DIR_PIN     // 17
187
+  #undef E2_ENABLE_PIN // 23
188
+  #undef E2_STEP_PIN   // 22
189
+  #undef E2_DIR_PIN    // 60
190
+  #define Y_ENABLE_PIN             23
191
+  #define Y_STEP_PIN               22
192
+  #define Y_DIR_PIN                60
193
+  #define SPINDLE_LASER_PWM_PIN     4  // MUST BE HARDWARE PWM
194
+  #define SPINDLE_LASER_ENABLE_PIN 17  // Pin should have a pullup!
195
+  #define SPINDLE_DIR_PIN           5
193
 #endif
196
 #endif

Loading…
Cancel
Save