Browse Source

Set flags for RAMPS "type" in pins.h

Scott Lahteine 8 years ago
parent
commit
d3b713cebc

+ 26
- 4
Marlin/pins.h View File

@@ -42,12 +42,34 @@
42 42
 #elif MB(RAMPS_OLD)
43 43
   #include "pins_RAMPS_OLD.h"
44 44
 #elif MB(RAMPS_13_EFB)
45
-  #include "pins_RAMPS_13_EFB.h"
46
-#elif MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF)
45
+  #define IS_RAMPS_EFB
46
+  #include "pins_RAMPS_13.h"
47
+#elif MB(RAMPS_13_EEB)
48
+  #define IS_RAMPS_EEB
49
+  #include "pins_RAMPS_13.h"
50
+#elif MB(RAMPS_13_EFF)
51
+  #define IS_RAMPS_EFF
52
+  #include "pins_RAMPS_13.h"
53
+#elif MB(RAMPS_13_EEF)
54
+  #define IS_RAMPS_EEF
55
+  #include "pins_RAMPS_13.h"
56
+#elif MB(RAMPS_13_SF)
57
+  #define IS_RAMPS_SF
47 58
   #include "pins_RAMPS_13.h"
48 59
 #elif MB(RAMPS_14_EFB)
49
-  #include "pins_RAMPS_14_EFB.h"
50
-#elif MB(RAMPS_14_EEB) || MB(RAMPS_14_EFF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_SF)
60
+  #define IS_RAMPS_EFB
61
+  #include "pins_RAMPS_14.h"
62
+#elif MB(RAMPS_14_EEB)
63
+  #define IS_RAMPS_EEB
64
+  #include "pins_RAMPS_14.h"
65
+#elif MB(RAMPS_14_EFF)
66
+  #define IS_RAMPS_EFF
67
+  #include "pins_RAMPS_14.h"
68
+#elif MB(RAMPS_14_EEF)
69
+  #define IS_RAMPS_EEF
70
+  #include "pins_RAMPS_14.h"
71
+#elif MB(RAMPS_14_SF)
72
+  #define IS_RAMPS_SF
51 73
   #include "pins_RAMPS_14.h"
52 74
 #elif MB(GEN6)
53 75
   #include "pins_GEN6.h"

+ 1
- 1
Marlin/pins_FELIX2.h View File

@@ -32,7 +32,7 @@
32 32
 
33 33
 #define HI_VOLT_PIN_D 7
34 34
 
35
-#include "pins_RAMPS_14_EFB.h"
35
+#include "pins_RAMPS_14.h"
36 36
 
37 37
 #undef SDPOWER
38 38
 #define SDPOWER             1

+ 1
- 1
Marlin/pins_MKS_13.h View File

@@ -37,7 +37,7 @@
37 37
 
38 38
 #define HI_VOLT_PIN_D 7
39 39
 
40
-#include "pins_RAMPS_14_EFB.h"
40
+#include "pins_RAMPS_14.h"
41 41
 
42 42
 #if ENABLED(VIKI2) || ENABLED(miniVIKI)
43 43
   /**

+ 1
- 1
Marlin/pins_MKS_BASE.h View File

@@ -32,4 +32,4 @@
32 32
 
33 33
 #define HI_VOLT_PIN_D 7
34 34
 
35
-#include "pins_RAMPS_14_EFB.h"
35
+#include "pins_RAMPS_14.h"

+ 0
- 32
Marlin/pins_RAMPS_13_EFB.h View File

@@ -1,32 +0,0 @@
1
-/**
2
- * Marlin 3D Printer Firmware
3
- * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
- *
5
- * Based on Sprinter and grbl.
6
- * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
- *
21
- */
22
-
23
-/**
24
- * Arduino Mega with RAMPS v1.3 pin assignments
25
- *
26
- *  RAMPS_13_EFB (Extruder, Fan, Bed)
27
- */
28
-
29
-#define BOARD_NAME "RAMPS 1.3 EFB"
30
-
31
-#define IS_RAMPS_13
32
-#include "pins_RAMPS_14_EFB.h"

+ 5
- 10
Marlin/pins_RAMPS_14.h View File

@@ -151,30 +151,25 @@
151 151
   #define HI_VOLT_PIN_A 10
152 152
 #endif
153 153
 
154
-#if ENABLED(IS_RAMPS_EFB)                   // Hotend, Fan, Bed
154
+#if ENABLED(IS_RAMPS_EFB)                      // Hotend, Fan, Bed
155 155
   #define HEATER_0_PIN   HI_VOLT_PIN_A
156 156
   #define FAN_PIN        HI_VOLT_PIN_B
157 157
   #define HEATER_BED_PIN HI_VOLT_PIN_C
158
-  #if EXTRUDERS == 1
159
-    #define FAN1_PIN     HI_VOLT_PIN_D
160
-  #else
161
-    #define HEATER_1_PIN HI_VOLT_PIN_D
162
-  #endif
163
-#elif MB(RAMPS_13_EEF) || MB(RAMPS_14_EEF)  // Hotend, Hotend, Fan
158
+#elif ENABLED(IS_RAMPS_EEF)                    // Hotend, Hotend, Fan
164 159
   #define HEATER_0_PIN   HI_VOLT_PIN_A
165 160
   #define HEATER_1_PIN   HI_VOLT_PIN_B
166 161
   #define FAN_PIN        HI_VOLT_PIN_C
167
-#elif MB(RAMPS_13_EEB) || MB(RAMPS_14_EEB)  // Hotend, Hotend, Bed
162
+#elif ENABLED(IS_RAMPS_EEB)                    // Hotend, Hotend, Bed
168 163
   #define HEATER_0_PIN   HI_VOLT_PIN_A
169 164
   #define HEATER_1_PIN   HI_VOLT_PIN_B
170 165
   #define HEATER_BED_PIN HI_VOLT_PIN_C
171 166
   #define FAN_PIN 4 // IO pin. Buffer needed
172
-#elif MB(RAMPS_13_EFF) || MB(RAMPS_14_EFF)  // Hotend, Fan, Fan (EFF is reversed?)
167
+#elif ENABLED(IS_RAMPS_EFF)                    // Hotend, Fan, Fan (EFF is reversed?)
173 168
   #define HEATER_0_PIN   HI_VOLT_PIN_C
174 169
   #define FAN_PIN        HI_VOLT_PIN_B
175 170
   #define FAN1_PIN       HI_VOLT_PIN_A
176 171
   #define CONTROLLERFAN_PIN  -1
177
-#elif MB(RAMPS_13_SF) || MB(RAMPS_14_SF)    // Spindle, Fan
172
+#elif ENABLED(IS_RAMPS_SF)                     // Spindle, Fan
178 173
   #define FAN_PIN        HI_VOLT_PIN_C
179 174
 #else                                          // Non-specific are "EFB" by legacy
180 175
   #define HEATER_0_PIN   HI_VOLT_PIN_A

+ 0
- 34
Marlin/pins_RAMPS_14_EFB.h View File

@@ -1,34 +0,0 @@
1
-/**
2
- * Marlin 3D Printer Firmware
3
- * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
- *
5
- * Based on Sprinter and grbl.
6
- * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
- *
21
- */
22
-
23
-/**
24
- * Arduino Mega with RAMPS v1.4 pin assignments
25
- *
26
- *  RAMPS_14_EFB (Extruder, Fan, Bed)
27
- */
28
-
29
-#ifndef BOARD_NAME
30
-  #define BOARD_NAME "RAMPS 1.4 EFB"
31
-#endif
32
-
33
-#define IS_RAMPS_EFB
34
-#include "pins_RAMPS_14.h"

+ 5
- 4
Marlin/pins_SAINSMART_2IN1.h View File

@@ -30,8 +30,9 @@
30 30
 
31 31
 #define BOARD_NAME "Sainsmart"
32 32
 
33
-#define HI_VOLT_PIN_A  9
34
-#define HI_VOLT_PIN_B  7 // PART FAN in front of board next to Extruder heat
35
-#define HI_VOLT_PIN_D 10
33
+#define HI_VOLT_PIN_A  9 // E
34
+#define HI_VOLT_PIN_B  7 // F PART FAN in front of board next to Extruder heat
35
+     // HI_VOLT_PIN_C  8 // B
36
+#define HI_VOLT_PIN_D 10 // F / E
36 37
 
37
-#include "pins_RAMPS_14_EFB.h"
38
+#include "pins_RAMPS_14.h"

Loading…
Cancel
Save