Skip to content

Commit 00834ef

Browse files
committed
🎨 Clean up stops, sdss pins
1 parent 5b7b065 commit 00834ef

18 files changed

+84
-125
lines changed

Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
//
3838
// Limit Switches
3939
//
40-
#define X_MIN_PIN P1_24
41-
#define Y_MIN_PIN P1_26
40+
#define X_STOP_PIN P1_24
41+
#define Y_STOP_PIN P1_26
4242
#define Z_MIN_PIN P1_28
4343
#define Z_MAX_PIN P1_29
4444

Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@
4040
//
4141
#define X_MIN_PIN P1_28
4242
#define X_MAX_PIN P1_25
43-
#define Y_MIN_PIN P2_11
44-
#define Y_MAX_PIN -1
45-
#define Z_MIN_PIN P1_27
46-
#define Z_MAX_PIN -1
43+
#define Y_STOP_PIN P2_11
44+
#define Z_STOP_PIN P1_27
4745
#ifndef Z_MIN_PROBE_PIN
4846
#define Z_MIN_PROBE_PIN P1_22
4947
#endif

Marlin/src/pins/ramps/pins_3DRAG.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
#define RAMPS_D9_PIN 8
4545
#define MOSFET_D_PIN 12
4646

47+
//
48+
// Misc. Functions
49+
//
50+
#define SDSS 25
51+
4752
#ifndef CASE_LIGHT_PIN
4853
#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
4954
#endif
@@ -66,12 +71,6 @@
6671
//
6772
#define HEATER_2_PIN 6
6873

69-
//
70-
// Misc. Functions
71-
//
72-
#undef SDSS
73-
#define SDSS 25
74-
7574
#undef SD_DETECT_PIN
7675
#define SD_DETECT_PIN 53
7776

Marlin/src/pins/ramps/pins_COPYMASTER_3D.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323

2424
#define BOARD_INFO_NAME "Copymaster 3D RAMPS"
2525

26-
#define Z_STEP_PIN 47
27-
#define Y_MAX_PIN 14
28-
#define FIL_RUNOUT_PIN 15
29-
#define SD_DETECT_PIN 66
26+
#define Z_STEP_PIN 47
27+
#define Y_MAX_PIN 14
28+
#define FIL_RUNOUT_PIN 15
29+
#define SD_DETECT_PIN 66
3030

3131
//
3232
// Import RAMPS 1.4 pins

Marlin/src/pins/ramps/pins_K8600.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
//
4848
// Misc. Functions
4949
//
50+
#define SDSS 25
5051
#define CASE_LIGHT_PIN 7
5152

5253
//
@@ -87,12 +88,6 @@
8788
//
8889
#undef HEATER_BED_PIN
8990

90-
//
91-
// Misc. Functions
92-
//
93-
#undef SDSS
94-
#define SDSS 25 // 53
95-
9691
//
9792
// LCD / Controller
9893
//

Marlin/src/pins/ramps/pins_RAMPS.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@
241241
//
242242
// Misc. Functions
243243
//
244-
#define SDSS EXP2_07_PIN
244+
#ifndef SDSS
245+
#define SDSS EXP2_07_PIN
246+
#endif
245247
#define LED_PIN 13
246248

247249
#ifndef FILWIDTH_PIN

Marlin/src/pins/sam/pins_ADSK.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ A stepper for E0 extruder
8686
//
8787
// Limit Switches
8888
//
89-
#define X_MIN_PIN 9
90-
#define Y_MIN_PIN 10
91-
#define Z_MIN_PIN 11
89+
#define X_STOP_PIN 9
90+
#define Y_STOP_PIN 10
91+
#define Z_STOP_PIN 11
9292

9393
#define Z_MIN_PROBE_PIN 62 // Analog pin 8, Digital pin 62
9494

Marlin/src/pins/sam/pins_DUE3DOM.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
#define BTN_EN2 52
129129
#define BTN_ENC 48
130130

131-
#define SDSS 4
132131
#define SD_DETECT_PIN 14
133132

134133
#elif ENABLED(RADDS_DISPLAY)
@@ -141,8 +140,6 @@
141140

142141
#define BTN_BACK 71
143142

144-
#undef SDSS
145-
#define SDSS 4
146143
#define SD_DETECT_PIN 14
147144

148145
#elif HAS_U8GLIB_I2C_OLED

Marlin/src/pins/sam/pins_DUE3DOM_MINI.h

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@
4040
//
4141
// Limit Switches
4242
//
43-
#define X_MIN_PIN 38
44-
#define X_MAX_PIN -1
45-
#define Y_MIN_PIN 34
46-
#define Y_MAX_PIN -1
47-
#define Z_MIN_PIN 30
48-
#define Z_MAX_PIN -1
43+
#define X_STOP_PIN 38
44+
#define Y_STOP_PIN 34
45+
#define Z_STOP_PIN 30
4946

5047
//
5148
// Steppers
@@ -120,7 +117,10 @@
120117
#define BTN_EN2 52
121118
#define BTN_ENC 48
122119

123-
#define SDSS 4
120+
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
121+
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
122+
#endif
123+
124124
#define SD_DETECT_PIN 14
125125

126126
#elif ENABLED(RADDS_DISPLAY)
@@ -133,8 +133,6 @@
133133

134134
#define BTN_BACK 71
135135

136-
#undef SDSS
137-
#define SDSS 4
138136
#define SD_DETECT_PIN 14
139137

140138
#elif HAS_U8GLIB_I2C_OLED
@@ -143,7 +141,7 @@
143141
#define BTN_EN2 52
144142
#define BTN_ENC 48
145143
#define BEEPER_PIN 41
146-
#define LCD_SDSS 4
144+
#define LCD_SDSS SDSS
147145
#define SD_DETECT_PIN 14
148146

149147
#elif ENABLED(SPARK_FULL_GRAPHICS)
@@ -158,20 +156,17 @@
158156

159157
#define BEEPER_PIN -1
160158

161-
#elif ENABLED(MINIPANEL)
159+
#elif ENABLED(MINIPANEL)
160+
162161
#define BTN_EN1 52
163162
#define BTN_EN2 50
164163
#define BTN_ENC 48
165-
#define LCD_SDSS 4
164+
#define LCD_SDSS SDSS
166165
#define SD_DETECT_PIN 14
167166
#define BEEPER_PIN 41
168167
#define DOGLCD_A0 46
169168
#define DOGLCD_CS 45
170169

171-
#endif // SPARK_FULL_GRAPHICS
172-
173-
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
174-
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
175170
#endif
176171

177172
#endif // HAS_WIRED_LCD

Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
//
4141
// Limit Switches
4242
//
43-
#define X_MIN_PIN 22 // PB26
44-
#define Y_MAX_PIN 18 // PA11
45-
#define Z_MIN_PIN 19 // PA10
43+
#define X_STOP_PIN 22 // PB26
44+
#define Y_STOP_PIN 18 // PA11
45+
#define Z_STOP_PIN 19 // PA10
4646

4747
//
4848
// Z Probe (when not Z_MIN_PIN)

0 commit comments

Comments
 (0)