Browse Source

RAMPS assignment for derivatives

Scott Lahteine 7 years ago
parent
commit
223b7e473f
1 changed files with 28 additions and 0 deletions
  1. 28
    0
      Marlin/pins_RAMPS_14.h

+ 28
- 0
Marlin/pins_RAMPS_14.h View File

@@ -114,6 +114,25 @@
114 114
   #define SLED_PIN           -1
115 115
 #endif
116 116
 
117
+/*
118
+
119
+// Augmentation for auto-assigning RAMPS plugs
120
+
121
+#if DISABLED(IS_RAMPS_EEB) && DISABLED(IS_RAMPS_EEF) && DISABLED(IS_RAMPS_EFB) && DISABLED(IS_RAMPS_EFF) && DISABLED(IS_RAMPS_SF)
122
+  #if HOTENDS > 1
123
+    #if TEMP_SENSOR_BED
124
+      #define IS_RAMPS_EEB
125
+    #else
126
+      #define IS_RAMPS_EEF
127
+    #endif
128
+  #elif TEMP_SENSOR_BED
129
+    #define IS_RAMPS_EFB
130
+  #else
131
+    #define IS_RAMPS_EFF
132
+  #endif
133
+#endif
134
+
135
+*/
117 136
 
118 137
 /**
119 138
  * Hi Voltage PWM Pin Assignments
@@ -157,6 +176,15 @@
157 176
   #define CONTROLLERFAN_PIN  -1
158 177
 #elif MB(RAMPS_13_SF) || MB(RAMPS_14_SF)    // Spindle, Fan
159 178
   #define FAN_PIN        HI_VOLT_PIN_C
179
+#else                                          // Non-specific are "EFB" by legacy
180
+  #define HEATER_0_PIN   HI_VOLT_PIN_A
181
+  #define FAN_PIN        HI_VOLT_PIN_B
182
+  #define HEATER_BED_PIN HI_VOLT_PIN_C
183
+  #if HOTENDS == 1
184
+    #define FAN1_PIN     HI_VOLT_PIN_D
185
+  #else
186
+    #define HEATER_1_PIN HI_VOLT_PIN_D
187
+  #endif
160 188
 #endif
161 189
 
162 190
 

Loading…
Cancel
Save