Skip to content

Commit

Permalink
🎨 Clean up stops, sdss pins
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 5, 2021
1 parent 5b7b065 commit 00834ef
Show file tree
Hide file tree
Showing 18 changed files with 84 additions and 125 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
//
// Limit Switches
//
#define X_MIN_PIN P1_24
#define Y_MIN_PIN P1_26
#define X_STOP_PIN P1_24
#define Y_STOP_PIN P1_26
#define Z_MIN_PIN P1_28
#define Z_MAX_PIN P1_29

Expand Down
6 changes: 2 additions & 4 deletions Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
//
#define X_MIN_PIN P1_28
#define X_MAX_PIN P1_25
#define Y_MIN_PIN P2_11
#define Y_MAX_PIN -1
#define Z_MIN_PIN P1_27
#define Z_MAX_PIN -1
#define Y_STOP_PIN P2_11
#define Z_STOP_PIN P1_27
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN P1_22
#endif
Expand Down
11 changes: 5 additions & 6 deletions Marlin/src/pins/ramps/pins_3DRAG.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
#define RAMPS_D9_PIN 8
#define MOSFET_D_PIN 12

//
// Misc. Functions
//
#define SDSS 25

#ifndef CASE_LIGHT_PIN
#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
#endif
Expand All @@ -66,12 +71,6 @@
//
#define HEATER_2_PIN 6

//
// Misc. Functions
//
#undef SDSS
#define SDSS 25

#undef SD_DETECT_PIN
#define SD_DETECT_PIN 53

Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/pins/ramps/pins_COPYMASTER_3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

#define BOARD_INFO_NAME "Copymaster 3D RAMPS"

#define Z_STEP_PIN 47
#define Y_MAX_PIN 14
#define FIL_RUNOUT_PIN 15
#define SD_DETECT_PIN 66
#define Z_STEP_PIN 47
#define Y_MAX_PIN 14
#define FIL_RUNOUT_PIN 15
#define SD_DETECT_PIN 66

//
// Import RAMPS 1.4 pins
Expand Down
7 changes: 1 addition & 6 deletions Marlin/src/pins/ramps/pins_K8600.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
//
// Misc. Functions
//
#define SDSS 25
#define CASE_LIGHT_PIN 7

//
Expand Down Expand Up @@ -87,12 +88,6 @@
//
#undef HEATER_BED_PIN

//
// Misc. Functions
//
#undef SDSS
#define SDSS 25 // 53

//
// LCD / Controller
//
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/ramps/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@
//
// Misc. Functions
//
#define SDSS EXP2_07_PIN
#ifndef SDSS
#define SDSS EXP2_07_PIN
#endif
#define LED_PIN 13

#ifndef FILWIDTH_PIN
Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/pins/sam/pins_ADSK.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ A stepper for E0 extruder
//
// Limit Switches
//
#define X_MIN_PIN 9
#define Y_MIN_PIN 10
#define Z_MIN_PIN 11
#define X_STOP_PIN 9
#define Y_STOP_PIN 10
#define Z_STOP_PIN 11

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

Expand Down
3 changes: 0 additions & 3 deletions Marlin/src/pins/sam/pins_DUE3DOM.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
#define BTN_EN2 52
#define BTN_ENC 48

#define SDSS 4
#define SD_DETECT_PIN 14

#elif ENABLED(RADDS_DISPLAY)
Expand All @@ -141,8 +140,6 @@

#define BTN_BACK 71

#undef SDSS
#define SDSS 4
#define SD_DETECT_PIN 14

#elif HAS_U8GLIB_I2C_OLED
Expand Down
27 changes: 11 additions & 16 deletions Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@
//
// Limit Switches
//
#define X_MIN_PIN 38
#define X_MAX_PIN -1
#define Y_MIN_PIN 34
#define Y_MAX_PIN -1
#define Z_MIN_PIN 30
#define Z_MAX_PIN -1
#define X_STOP_PIN 38
#define Y_STOP_PIN 34
#define Z_STOP_PIN 30

//
// Steppers
Expand Down Expand Up @@ -120,7 +117,10 @@
#define BTN_EN2 52
#define BTN_ENC 48

#define SDSS 4
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif

#define SD_DETECT_PIN 14

#elif ENABLED(RADDS_DISPLAY)
Expand All @@ -133,8 +133,6 @@

#define BTN_BACK 71

#undef SDSS
#define SDSS 4
#define SD_DETECT_PIN 14

#elif HAS_U8GLIB_I2C_OLED
Expand All @@ -143,7 +141,7 @@
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 4
#define LCD_SDSS SDSS
#define SD_DETECT_PIN 14

#elif ENABLED(SPARK_FULL_GRAPHICS)
Expand All @@ -158,20 +156,17 @@

#define BEEPER_PIN -1

#elif ENABLED(MINIPANEL)
#elif ENABLED(MINIPANEL)

#define BTN_EN1 52
#define BTN_EN2 50
#define BTN_ENC 48
#define LCD_SDSS 4
#define LCD_SDSS SDSS
#define SD_DETECT_PIN 14
#define BEEPER_PIN 41
#define DOGLCD_A0 46
#define DOGLCD_CS 45

#endif // SPARK_FULL_GRAPHICS

#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif

#endif // HAS_WIRED_LCD
6 changes: 3 additions & 3 deletions Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
//
// Limit Switches
//
#define X_MIN_PIN 22 // PB26
#define Y_MAX_PIN 18 // PA11
#define Z_MIN_PIN 19 // PA10
#define X_STOP_PIN 22 // PB26
#define Y_STOP_PIN 18 // PA11
#define Z_STOP_PIN 19 // PA10

//
// Z Probe (when not Z_MIN_PIN)
Expand Down
40 changes: 19 additions & 21 deletions Marlin/src/pins/samd/pins_RAMPS_144.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
//
// Misc. Functions
//
#define SDSS 53
#define LED_PIN 13

#ifndef FILWIDTH_PIN
Expand Down Expand Up @@ -252,6 +251,21 @@
#endif
#endif

//
// SD Support
//
#ifndef SDCARD_CONNECTION
#define SDCARD_CONNECTION ONBOARD
#endif

#if SD_CONNECTION_IS(ONBOARD)
#define SDSS 83
#undef SD_DETECT_PIN
#define SD_DETECT_PIN 95
#else
#define SDSS 53
#endif

//////////////////////////
// LCDs and Controllers //
//////////////////////////
Expand Down Expand Up @@ -356,6 +370,9 @@
#else
#define BTN_EN1 31
#define BTN_EN2 33
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif

#define BTN_ENC 35
Expand All @@ -365,8 +382,7 @@
#define KILL_PIN 41

#if ENABLED(BQ_LCD_SMART_CONTROLLER)
// TO TEST
//#define LCD_BACKLIGHT_PIN 39
//#define LCD_BACKLIGHT_PIN 39 // TO TEST
#endif

#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
Expand Down Expand Up @@ -563,22 +579,4 @@
#endif
#endif // IS_NEWPANEL

#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif

#endif // HAS_WIRED_LCD

//
// SD Support
//
#ifndef SDCARD_CONNECTION
#define SDCARD_CONNECTION ONBOARD
#endif

#if SD_CONNECTION_IS(ONBOARD)
#undef SDSS
#define SDSS 83
#undef SD_DETECT_PIN
#define SD_DETECT_PIN 95
#endif
26 changes: 7 additions & 19 deletions Marlin/src/pins/stm32f1/pins_BEAST.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,27 @@
// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

//
// Limit Switches
//
#define X_STOP_PIN PD5
#define Y_STOP_PIN PD6
#define Z_STOP_PIN PD7

//
// Steppers
//
#define X_STEP_PIN PE0
#define X_DIR_PIN PE1
#define X_ENABLE_PIN PC0
#define X_MIN_PIN PD5
#define X_MAX_PIN -1

#define Y_STEP_PIN PE2
#define Y_DIR_PIN PE3
#define Y_ENABLE_PIN PC1
#define Y_MIN_PIN PD6
#define Y_MAX_PIN

#define Z_STEP_PIN PE4
#define Z_DIR_PIN PE5
#define Z_ENABLE_PIN PC2
#define Z_MIN_PIN PD7
#define Z_MAX_PIN -1

#define Y2_STEP_PIN -1
#define Y2_DIR_PIN -1
#define Y2_ENABLE_PIN -1

#define Z2_STEP_PIN -1
#define Z2_DIR_PIN -1
#define Z2_ENABLE_PIN -1

#define E0_STEP_PIN PE6
#define E0_DIR_PIN PE7
Expand All @@ -87,9 +80,6 @@
#define SDSS PA15
#define LED_PIN PB2

#define PS_ON_PIN -1
#define KILL_PIN -1

//
// Heaters / Fans
//
Expand All @@ -98,8 +88,6 @@
#define HEATER_2_PIN PD14

#define HEATER_BED_PIN PB9 // BED
#define HEATER_BED2_PIN -1 // BED2
#define HEATER_BED3_PIN -1 // BED3

#ifndef FAN_PIN
#define FAN_PIN PB10
Expand Down
Loading

0 comments on commit 00834ef

Please sign in to comment.