Browse Source

Merge branch 'Development' into cleanup_ultralcd

Latest upstream changes
Scott Lahteine 10 years ago
parent
commit
c7a97e18b7

+ 2
- 3
Marlin/boards.h View File

@@ -50,12 +50,11 @@
50 50
 #define BOARD_LEAPFROG          999  // Leapfrog
51 51
 #define BOARD_WITBOX            41   // bq WITBOX
52 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 and Arduino Mega
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
55 55
 
56 56
 #define BOARD_99                99   // This is in pins.h but...?
57 57
 
58 58
 #define MB(board) (MOTHERBOARD==BOARD_##board)
59
-#define IS_RAMPS (MB(RAMPS_OLD) || MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(BAM_DICE) )
60 59
 
61 60
 #endif //__BOARDS_H

+ 3
- 1
Marlin/pins.h View File

@@ -36,7 +36,7 @@
36 36
   #include "pins_SETHI.h"
37 37
 #elif MB(RAMPS_OLD)
38 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 40
   #include "pins_RAMPS_13.h"
41 41
 #elif MB(DUEMILANOVE_328P)
42 42
   #include "pins_DUEMILANOVE_328P.h"
@@ -110,6 +110,8 @@
110 110
   #include "pins_WITBOX.h"
111 111
 #elif MB(HEPHESTOS)
112 112
   #include "pins_HEPHESTOS.h"
113
+#elif MB(BAM_DICE)
114
+  #include "pins_RAMPS_13.h"
113 115
 #elif MB(BAM_DICE_DUE)
114 116
   #include "pins_BAM_DICE_DUE.h"
115 117
 #elif MB(99)

+ 8
- 0
Marlin/pins_AZTEEG_X3.h View File

@@ -3,3 +3,11 @@
3 3
  */
4 4
 
5 5
 #include "pins_RAMPS_13.h"
6
+
7
+#define FAN_PIN            9 // (Sprinter config)
8
+#define HEATER_1_PIN       -1
9
+
10
+#ifdef TEMP_STAT_LEDS
11
+  #define STAT_LED_RED       6
12
+  #define STAT_LED_BLUE     11
13
+#endif

+ 9
- 5
Marlin/pins_AZTEEG_X3_PRO.h View File

@@ -4,6 +4,9 @@
4 4
 
5 5
 #include "pins_RAMPS_13.h"
6 6
 
7
+#define FAN_PIN             9 // (Sprinter config)
8
+#define BEEPER             33
9
+
7 10
 #define E2_STEP_PIN        23
8 11
 #define E2_DIR_PIN         25
9 12
 #define E2_ENABLE_PIN      40
@@ -16,15 +19,16 @@
16 19
 #define E4_DIR_PIN         37
17 20
 #define E4_ENABLE_PIN      42
18 21
 
22
+#define HEATER_1_PIN       -1
19 23
 #define HEATER_2_PIN       16
20 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 28
 #define HEATER_7_PIN       11
25 29
 
26 30
 #define TEMP_2_PIN         12   // ANALOG NUMBERING
27 31
 #define TEMP_3_PIN         11   // ANALOG NUMBERING
28 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

+ 5
- 177
Marlin/pins_BAM_DICE_DUE.h View File

@@ -1,183 +1,11 @@
1 1
 /**
2
- * Arduino Mega with BAM&DICE DUE pin assignments
3
- *
4
- * Applies to the following boards:
5
- *
6
- *  BAM&DICE Due with Arduino Mega
2
+ * BAM&DICE Due (Arduino Mega) pin assignments
7 3
  */
8 4
 
9
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
10
-  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
11
-#endif
12
-
13
-#define LARGE_FLASH true
14
-
15
-#define X_STEP_PIN         54
16
-#define X_DIR_PIN          55
17
-#define X_ENABLE_PIN       38
18
-#define X_MIN_PIN           3
19
-#define X_MAX_PIN           2
20
-
21
-#define Y_STEP_PIN         60
22
-#define Y_DIR_PIN          61
23
-#define Y_ENABLE_PIN       56
24
-#define Y_MIN_PIN          14
25
-#define Y_MAX_PIN          15
26
-
27
-#define Z_STEP_PIN         46
28
-#define Z_DIR_PIN          48
29
-#define Z_ENABLE_PIN       62
30
-#define Z_MIN_PIN          18
31
-#define Z_MAX_PIN          19
32
-
33
-#define Y2_STEP_PIN        36
34
-#define Y2_DIR_PIN         34
35
-#define Y2_ENABLE_PIN      30
36
-
37
-#define Z2_STEP_PIN        36
38
-#define Z2_DIR_PIN         34
39
-#define Z2_ENABLE_PIN      30
40
-
41
-#define E0_STEP_PIN        26
42
-#define E0_DIR_PIN         28
43
-#define E0_ENABLE_PIN      24
44
-
45
-#define E1_STEP_PIN        36
46
-#define E1_DIR_PIN         34
47
-#define E1_ENABLE_PIN      30
48
-
49
-#define SDPOWER            -1
50
-#define SDSS               53
51
-#define LED_PIN            13
52
-
53
-#define FAN_PIN            9 // (Sprinter config)
54
- 
55
-#define PS_ON_PIN          12
56
-
57
-#if defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
58
-  #define KILL_PIN           41
59
-#else
60
-  #define KILL_PIN           -1
61
-#endif
62
-
63
-#define HEATER_0_PIN       10
5
+#include "pins_RAMPS_13.h"
64 6
 
7
+#define FAN_PIN             9 // (Sprinter config)
65 8
 #define HEATER_1_PIN       -1
66 9
 
67
-#define HEATER_2_PIN       -1
68
-
69
-#define TEMP_0_PIN         9   // ANALOG NUMBERING
70
-#define TEMP_1_PIN         11   // ANALOG NUMBERING
71
-#define TEMP_2_PIN         -1   // ANALOG NUMBERING
72
-
73
-#define HEATER_BED_PIN     8    // BED
74
-
75
-#define TEMP_BED_PIN       14   // ANALOG NUMBERING
76
-
77
-#ifdef NUM_SERVOS
78
-  #define SERVO0_PIN         11
79
-
80
-  #if NUM_SERVOS > 1
81
-    #define SERVO1_PIN         6
82
-  #endif
83
-
84
-  #if NUM_SERVOS > 2
85
-    #define SERVO2_PIN         5
86
-  #endif
87
-
88
-  #if NUM_SERVOS > 3
89
-    #define SERVO3_PIN         4
90
-  #endif
91
-#endif
92
-
93
-
94
-#ifdef ULTRA_LCD
95
-
96
-  #ifdef NEWPANEL
97
-    #define LCD_PINS_RS 16
98
-    #define LCD_PINS_ENABLE 17
99
-    #define LCD_PINS_D4 23
100
-    #define LCD_PINS_D5 25
101
-    #define LCD_PINS_D6 27
102
-    #define LCD_PINS_D7 29
103
-
104
-    #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
105
-      #define BEEPER 37
106
-
107
-      #define BTN_EN1 31
108
-      #define BTN_EN2 33
109
-      #define BTN_ENC 35
110
-
111
-      #define SDCARDDETECT 49
112
-    #elif defined(LCD_I2C_PANELOLU2)
113
-      #define BTN_EN1 47  // reverse if the encoder turns the wrong way.
114
-      #define BTN_EN2 43
115
-      #define BTN_ENC 32
116
-      #define LCD_SDSS 53
117
-      #define SDCARDDETECT -1
118
-      #define KILL_PIN 41
119
-    #elif defined(LCD_I2C_VIKI)
120
-      #define BTN_EN1 22  // reverse if the encoder turns the wrong way.
121
-      #define BTN_EN2 7
122
-      #define BTN_ENC -1
123
-      #define LCD_SDSS 53
124
-      #define SDCARDDETECT 49
125
-    #else
126
-      // arduino pin which triggers an piezzo beeper
127
-      #define BEEPER 33  // Beeper on AUX-4
128
-
129
-      // buttons are directly attached using AUX-2
130
-      #ifdef REPRAPWORLD_KEYPAD
131
-        #define BTN_EN1 64 // encoder
132
-        #define BTN_EN2 59 // encoder
133
-        #define BTN_ENC 63 // enter button
134
-        #define SHIFT_OUT 40 // shift register
135
-        #define SHIFT_CLK 44 // shift register
136
-        #define SHIFT_LD 42 // shift register
137
-      #else
138
-        #define BTN_EN1 37
139
-        #define BTN_EN2 35
140
-        #define BTN_ENC 31  // the click
141
-      #endif
142
-
143
-      #ifdef G3D_PANEL
144
-        #define SDCARDDETECT 49
145
-      #else
146
-        #define SDCARDDETECT -1  // Ramps does not use this port
147
-      #endif
148
-
149
-    #endif
150
-
151
-  #else // Old-style panel with shift register
152
-    // Arduino pin witch triggers an piezzo beeper
153
-    #define BEEPER 33   // No Beeper added
154
-
155
-    // Buttons are attached to a shift register
156
-    // Not wired yet
157
-    // #define SHIFT_CLK 38
158
-    // #define SHIFT_LD 42
159
-    // #define SHIFT_OUT 40
160
-    // #define SHIFT_EN 17
161
-
162
-    #define LCD_PINS_RS 16
163
-    #define LCD_PINS_ENABLE 17
164
-    #define LCD_PINS_D4 23
165
-    #define LCD_PINS_D5 25
166
-    #define LCD_PINS_D6 27
167
-    #define LCD_PINS_D7 29
168
-  #endif
169
-#endif // ULTRA_LCD
170
-
171
-// SPI for Max6675 Thermocouple
172
-#ifndef SDSUPPORT
173
-  #define MAX6675_SS       66 // Do not use pin 53 if there is even the remote possibility of using Display/SD card
174
-#else
175
-  #define MAX6675_SS       66 // Do not use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
176
-#endif
177
-
178
-#ifndef SDSUPPORT
179
-  // these pins are defined in the SD library if building with SD support
180
-  #define SCK_PIN          52
181
-  #define MISO_PIN         50
182
-  #define MOSI_PIN         51
183
-#endif
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 +3,6 @@
3 3
  */
4 4
 
5 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,10 +7,8 @@
7 7
  *  RAMPS_13_EEB (Extruder, Extruder, Bed)
8 8
  *  RAMPS_13_EFF (Extruder, Fan, Fan)
9 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 14
 #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
@@ -63,7 +61,7 @@
63 61
   #define FILWIDTH_PIN        5
64 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 65
   #define FAN_PIN            9 // (Sprinter config)
68 66
   #if MB(RAMPS_13_EFF)
69 67
     #define CONTROLLERFAN_PIN  -1 // Pin used for the fan to cool controller
@@ -88,7 +86,7 @@
88 86
   #define HEATER_0_PIN       10   // EXTRUDER 1
89 87
 #endif
90 88
 
91
-#if MB(RAMPS_13_EFB) || MB(AZTEEG_X3) || MB(WITBOX) || MB(HEPHESTOS)
89
+#if MB(RAMPS_13_EFB)
92 90
   #define HEATER_1_PIN       -1
93 91
 #else
94 92
   #define HEATER_1_PIN       9    // EXTRUDER 2 (FAN On Sprinter)
@@ -110,28 +108,14 @@
110 108
 
111 109
 #ifdef NUM_SERVOS
112 110
   #define SERVO0_PIN         11
113
-
114 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 119
   #endif
136 120
 #endif
137 121
 

+ 3
- 0
Marlin/pins_WITBOX.h View File

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

+ 4
- 6
Marlin/temperature.cpp View File

@@ -455,19 +455,17 @@ void checkExtruderAutoFans()
455 455
     setExtruderAutoFanState(EXTRUDER_0_AUTO_FAN_PIN, (fanState & 1) != 0);
456 456
   #endif 
457 457
   #if defined(EXTRUDER_1_AUTO_FAN_PIN) && EXTRUDER_1_AUTO_FAN_PIN > -1
458
-    if (EXTRUDER_1_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN) 
458
+    if (EXTRUDER_1_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
459 459
       setExtruderAutoFanState(EXTRUDER_1_AUTO_FAN_PIN, (fanState & 2) != 0);
460 460
   #endif 
461 461
   #if defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1
462
-    if (EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
463
-        && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
462
+    if (EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN
464 463
         && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
465 464
       setExtruderAutoFanState(EXTRUDER_2_AUTO_FAN_PIN, (fanState & 4) != 0);
466 465
   #endif
467 466
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
468
-    if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
469
-        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
470
-        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
467
+    if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN
468
+        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN
471 469
         && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_2_AUTO_FAN_PIN)
472 470
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
473 471
   #endif

Loading…
Cancel
Save