Browse Source

Merge branch 'Development' into fixup_ramps_boards

- Also apply cleanup for #1514
Scott Lahteine 9 years ago
parent
commit
7891eacf21

+ 2
- 1
Marlin/boards.h View File

50
 #define BOARD_LEAPFROG          999  // Leapfrog
50
 #define BOARD_LEAPFROG          999  // Leapfrog
51
 #define BOARD_WITBOX            41   // bq WITBOX
51
 #define BOARD_WITBOX            41   // bq WITBOX
52
 #define BOARD_HEPHESTOS         42   // bq Prusa i3 Hephestos
52
 #define BOARD_HEPHESTOS         42   // bq Prusa i3 Hephestos
53
+#define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
54
+#define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
53
 
55
 
54
 #define BOARD_99                99   // This is in pins.h but...?
56
 #define BOARD_99                99   // This is in pins.h but...?
55
 
57
 
56
 #define MB(board) (MOTHERBOARD==BOARD_##board)
58
 #define MB(board) (MOTHERBOARD==BOARD_##board)
57
-#define IS_RAMPS (MB(RAMPS_OLD) || MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF))
58
 
59
 
59
 #endif //__BOARDS_H
60
 #endif //__BOARDS_H

+ 5
- 1
Marlin/pins.h View File

36
   #include "pins_SETHI.h"
36
   #include "pins_SETHI.h"
37
 #elif MB(RAMPS_OLD)
37
 #elif MB(RAMPS_OLD)
38
   #include "pins_RAMPS_OLD.h"
38
   #include "pins_RAMPS_OLD.h"
39
-#elif IS_RAMPS
39
+#elif MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
40
   #include "pins_RAMPS_13.h"
40
   #include "pins_RAMPS_13.h"
41
 #elif MB(DUEMILANOVE_328P)
41
 #elif MB(DUEMILANOVE_328P)
42
   #include "pins_DUEMILANOVE_328P.h"
42
   #include "pins_DUEMILANOVE_328P.h"
110
   #include "pins_WITBOX.h"
110
   #include "pins_WITBOX.h"
111
 #elif MB(HEPHESTOS)
111
 #elif MB(HEPHESTOS)
112
   #include "pins_HEPHESTOS.h"
112
   #include "pins_HEPHESTOS.h"
113
+#elif MB(BAM_DICE)
114
+  #include "pins_RAMPS_13.h"
115
+#elif MB(BAM_DICE_DUE)
116
+  #include "pins_BAM_DICE_DUE.h"
113
 #elif MB(99)
117
 #elif MB(99)
114
   #include "pins_99.h"
118
   #include "pins_99.h"
115
 #else
119
 #else

+ 0
- 5
Marlin/pins_AZTEEG_X3.h View File

1
-/**
2
- * AZTEEG_X3 Arduino Mega with RAMPS v1.3 pin assignments
3
- */
4
-
5
-#include "pins_RAMPS_13.h"

+ 9
- 5
Marlin/pins_AZTEEG_X3_PRO.h View File

4
 
4
 
5
 #include "pins_RAMPS_13.h"
5
 #include "pins_RAMPS_13.h"
6
 
6
 
7
+#define FAN_PIN             9 // (Sprinter config)
8
+#define BEEPER             33
9
+
7
 #define E2_STEP_PIN        23
10
 #define E2_STEP_PIN        23
8
 #define E2_DIR_PIN         25
11
 #define E2_DIR_PIN         25
9
 #define E2_ENABLE_PIN      40
12
 #define E2_ENABLE_PIN      40
16
 #define E4_DIR_PIN         37
19
 #define E4_DIR_PIN         37
17
 #define E4_ENABLE_PIN      42
20
 #define E4_ENABLE_PIN      42
18
 
21
 
22
+#define HEATER_1_PIN       -1
19
 #define HEATER_2_PIN       16
23
 #define HEATER_2_PIN       16
20
 #define HEATER_3_PIN       17
24
 #define HEATER_3_PIN       17
21
-#define HEATER_4_PIN       4
22
-#define HEATER_5_PIN       5
23
-#define HEATER_6_PIN       6
25
+#define HEATER_4_PIN        4
26
+#define HEATER_5_PIN        5
27
+#define HEATER_6_PIN        6
24
 #define HEATER_7_PIN       11
28
 #define HEATER_7_PIN       11
25
 
29
 
26
 #define TEMP_2_PIN         12   // ANALOG NUMBERING
30
 #define TEMP_2_PIN         12   // ANALOG NUMBERING
27
 #define TEMP_3_PIN         11   // ANALOG NUMBERING
31
 #define TEMP_3_PIN         11   // ANALOG NUMBERING
28
 #define TEMP_4_PIN         10   // ANALOG NUMBERING
32
 #define TEMP_4_PIN         10   // ANALOG NUMBERING
29
-#define TC1                4    // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
30
-#define TC2                5    // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
33
+#define TC1                 4   // ANALOG NUMBERING Thermo couple on Azteeg X3Pro
34
+#define TC2                 5   // ANALOG NUMBERING Thermo couple on Azteeg X3Pro

+ 11
- 0
Marlin/pins_BAM_DICE_DUE.h View File

1
+/**
2
+ * BAM&DICE Due (Arduino Mega) pin assignments
3
+ */
4
+
5
+#include "pins_RAMPS_13.h"
6
+
7
+#define FAN_PIN             9 // (Sprinter config)
8
+#define HEATER_1_PIN       -1
9
+
10
+#define TEMP_0_PIN          9 // ANALOG NUMBERING
11
+#define TEMP_1_PIN         11 // ANALOG NUMBERING

+ 3
- 0
Marlin/pins_HEPHESTOS.h View File

3
  */
3
  */
4
 
4
 
5
 #include "pins_RAMPS_13.h"
5
 #include "pins_RAMPS_13.h"
6
+
7
+#define FAN_PIN             9 // (Sprinter config)
8
+#define HEATER_1_PIN       -1

+ 11
- 27
Marlin/pins_RAMPS_13.h View File

7
  *  RAMPS_13_EEB (Extruder, Extruder, Bed)
7
  *  RAMPS_13_EEB (Extruder, Extruder, Bed)
8
  *  RAMPS_13_EFF (Extruder, Fan, Fan)
8
  *  RAMPS_13_EFF (Extruder, Fan, Fan)
9
  *  RAMPS_13_EEF (Extruder, Extruder, Fan)
9
  *  RAMPS_13_EEF (Extruder, Extruder, Fan)
10
- *  3DRAG
11
- *  K8200
12
- *  AZTEEG_X3
13
- *  AZTEEG_X3_PRO
10
+ *
11
+ *  Other pins_MYBOARD.h files may override these defaults
14
  */
12
  */
15
 
13
 
16
 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
14
 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
63
   #define FILWIDTH_PIN        5
61
   #define FILWIDTH_PIN        5
64
 #endif
62
 #endif
65
 
63
 
66
-#if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF) || MB(AZTEEG_X3) || MB(AZTEEG_X3_PRO) || MB(WITBOX) || MB(HEPHESTOS)
64
+#if MB(RAMPS_13_EFB) || MB(RAMPS_13_EFF)
67
   #define FAN_PIN            9 // (Sprinter config)
65
   #define FAN_PIN            9 // (Sprinter config)
68
   #if MB(RAMPS_13_EFF)
66
   #if MB(RAMPS_13_EFF)
69
     #define CONTROLLERFAN_PIN  -1 // Pin used for the fan to cool controller
67
     #define CONTROLLERFAN_PIN  -1 // Pin used for the fan to cool controller
88
   #define HEATER_0_PIN       10   // EXTRUDER 1
86
   #define HEATER_0_PIN       10   // EXTRUDER 1
89
 #endif
87
 #endif
90
 
88
 
91
-#if MB(RAMPS_13_EFB) || MB(AZTEEG_X3) || MB(WITBOX) || MB(HEPHESTOS)
89
+#if MB(RAMPS_13_EFB)
92
   #define HEATER_1_PIN       -1
90
   #define HEATER_1_PIN       -1
93
 #else
91
 #else
94
   #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
92
   #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
110
 
108
 
111
 #ifdef NUM_SERVOS
109
 #ifdef NUM_SERVOS
112
   #define SERVO0_PIN         11
110
   #define SERVO0_PIN         11
113
-
114
   #if NUM_SERVOS > 1
111
   #if NUM_SERVOS > 1
115
-    #define SERVO1_PIN         6
116
-  #endif
117
-
118
-  #if NUM_SERVOS > 2
119
-    #define SERVO2_PIN         5
120
-  #endif
121
-
122
-  #if NUM_SERVOS > 3
123
-    #define SERVO3_PIN         4
124
-  #endif
125
-#endif
126
-
127
-#if MB(AZTEEG_X3_PRO)
128
-  #define BEEPER 33
129
-#endif
130
-
131
-#ifdef TEMP_STAT_LEDS
132
-  #if MB(AZTEEG_X3)
133
-    #define STAT_LED_RED       6
134
-    #define STAT_LED_BLUE     11
112
+    #define SERVO1_PIN        6
113
+    #if NUM_SERVOS > 2
114
+      #define SERVO2_PIN      5
115
+      #if NUM_SERVOS > 3
116
+        #define SERVO3_PIN    4
117
+      #endif
118
+    #endif
135
   #endif
119
   #endif
136
 #endif
120
 #endif
137
 
121
 

+ 3
- 0
Marlin/pins_WITBOX.h View File

3
  */
3
  */
4
 
4
 
5
 #include "pins_RAMPS_13.h"
5
 #include "pins_RAMPS_13.h"
6
+
7
+#define FAN_PIN             9 // (Sprinter config)
8
+#define HEATER_1_PIN       -1

Loading…
Cancel
Save