Browse Source

Merge pull request #8666 from jkur/bugfix-1.1.x

[1.1.x] Add board Mini RAMBo 1.0a
Scott Lahteine 7 years ago
parent
commit
b692d91ca3
No account linked to committer's email address
4 changed files with 62 additions and 38 deletions
  1. 2
    1
      Marlin/boards.h
  2. 2
    5
      Marlin/pins.h
  3. 5
    9
      Marlin/pins_MEGATRONICS_3.h
  4. 53
    23
      Marlin/pins_MINIRAMBO.h

+ 2
- 1
Marlin/boards.h View File

90
 #define BOARD_MEGATRONICS_31    704   // Megatronics v3.1
90
 #define BOARD_MEGATRONICS_31    704   // Megatronics v3.1
91
 #define BOARD_RAMBO             301   // Rambo
91
 #define BOARD_RAMBO             301   // Rambo
92
 #define BOARD_MINIRAMBO         302   // Mini-Rambo
92
 #define BOARD_MINIRAMBO         302   // Mini-Rambo
93
+#define BOARD_MINIRAMBO_10A     303   // Mini-Rambo 1.0a
93
 #define BOARD_ELEFU_3           21    // Elefu Ra Board (v3)
94
 #define BOARD_ELEFU_3           21    // Elefu Ra Board (v3)
94
 #define BOARD_LEAPFROG          999   // Leapfrog
95
 #define BOARD_LEAPFROG          999   // Leapfrog
95
 #define BOARD_MEGACONTROLLER    310   // Mega controller
96
 #define BOARD_MEGACONTROLLER    310   // Mega controller
96
-#define BOARD_SCOOVO_X9H        303   // abee Scoovo X9H
97
+#define BOARD_SCOOVO_X9H        321   // abee Scoovo X9H
97
 #define BOARD_GT2560_REV_A      74    // Geeetech GT2560 Rev. A
98
 #define BOARD_GT2560_REV_A      74    // Geeetech GT2560 Rev. A
98
 #define BOARD_GT2560_REV_A_PLUS 75    // Geeetech GT2560 Rev. A+ (with auto level probe)
99
 #define BOARD_GT2560_REV_A_PLUS 75    // Geeetech GT2560 Rev. A+ (with auto level probe)
99
 
100
 

+ 2
- 5
Marlin/pins.h View File

152
   #include "pins_MEGATRONICS.h"       // ATmega2560
152
   #include "pins_MEGATRONICS.h"       // ATmega2560
153
 #elif MB(MEGATRONICS_2)
153
 #elif MB(MEGATRONICS_2)
154
   #include "pins_MEGATRONICS_2.h"     // ATmega2560
154
   #include "pins_MEGATRONICS_2.h"     // ATmega2560
155
-#elif MB(MEGATRONICS_3)
156
-  #include "pins_MEGATRONICS_3.h"     // ATmega2560
157
-#elif MB(MEGATRONICS_31)
158
-  #define MEGATRONICS_31
155
+#elif MB(MEGATRONICS_3) || MB(MEGATRONICS_31)
159
   #include "pins_MEGATRONICS_3.h"     // ATmega2560
156
   #include "pins_MEGATRONICS_3.h"     // ATmega2560
160
 #elif MB(RAMBO)
157
 #elif MB(RAMBO)
161
   #include "pins_RAMBO.h"             // ATmega2560
158
   #include "pins_RAMBO.h"             // ATmega2560
162
-#elif MB(MINIRAMBO)
159
+#elif MB(MINIRAMBO) || MB(MINIRAMBO_10A)
163
   #include "pins_MINIRAMBO.h"         // ATmega2560
160
   #include "pins_MINIRAMBO.h"         // ATmega2560
164
 #elif MB(ELEFU_3)
161
 #elif MB(ELEFU_3)
165
   #include "pins_ELEFU_3.h"           // ATmega2560
162
   #include "pins_ELEFU_3.h"           // ATmega2560

+ 5
- 9
Marlin/pins_MEGATRONICS_3.h View File

21
  */
21
  */
22
 
22
 
23
 /**
23
 /**
24
- * MegaTronics v3.0 pin assignments
24
+ * MegaTronics v3.0 / v3.1 pin assignments
25
  */
25
  */
26
 
26
 
27
 #ifndef __AVR_ATmega2560__
27
 #ifndef __AVR_ATmega2560__
28
   #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
28
   #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
29
 #endif
29
 #endif
30
 
30
 
31
-#define MEGATRONICS_31
32
-
33
-#if ENABLED(MEGATRONICS_31)
34
-  #define BOARD_NAME       "Megatronics v3.1"
31
+#if MB(MEGATRONICS_31)
32
+  #define BOARD_NAME "Megatronics v3.1"
35
 #else
33
 #else
36
-  #define BOARD_NAME       "Megatronics v3.0"
34
+  #define BOARD_NAME "Megatronics v3.0"
37
 #endif
35
 #endif
38
 
36
 
39
 //
37
 //
161
   #define SHIFT_OUT        34
159
   #define SHIFT_OUT        34
162
   #define SHIFT_EN         44
160
   #define SHIFT_EN         44
163
 
161
 
164
-  #if ENABLED(MEGATRONICS_31)
162
+  #if MB(MEGATRONICS_31)
165
     #define SD_DETECT_PIN  56
163
     #define SD_DETECT_PIN  56
166
-  #else
167
-    #define SD_DETECT_PIN  -1
168
   #endif
164
   #endif
169
 
165
 
170
 #endif
166
 #endif

+ 53
- 23
Marlin/pins_MINIRAMBO.h View File

25
  */
25
  */
26
 
26
 
27
 #ifndef __AVR_ATmega2560__
27
 #ifndef __AVR_ATmega2560__
28
-  #error "Oops!  Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu."
28
+  #error "Oops!  Make sure you have 'Rambo' selected from the 'Tools -> Boards' menu."
29
 #endif
29
 #endif
30
 
30
 
31
-#define BOARD_NAME          "Mini Rambo"
31
+#if MB(MINIRAMBO_10A)
32
+  #define BOARD_NAME "Mini Rambo 1.0a"
33
+#else
34
+  #define BOARD_NAME "Mini Rambo"
35
+#endif
32
 
36
 
33
 //
37
 //
34
 // Limit Switches
38
 // Limit Switches
66
 #define E0_DIR_PIN         43
70
 #define E0_DIR_PIN         43
67
 #define E0_ENABLE_PIN      26
71
 #define E0_ENABLE_PIN      26
68
 
72
 
69
-#define E1_STEP_PIN        -1
70
-#define E1_DIR_PIN         -1
71
-#define E1_ENABLE_PIN      -1
72
-
73
 // Microstepping pins - Mapping not from fastio.h (?)
73
 // Microstepping pins - Mapping not from fastio.h (?)
74
 #define X_MS1_PIN          40
74
 #define X_MS1_PIN          40
75
 #define X_MS2_PIN          41
75
 #define X_MS2_PIN          41
101
 //
101
 //
102
 #define HEATER_0_PIN        3
102
 #define HEATER_0_PIN        3
103
 #define HEATER_1_PIN        7
103
 #define HEATER_1_PIN        7
104
-#define HEATER_2_PIN        6
104
+#if !MB(MINIRAMBO_10A)
105
+  #define HEATER_2_PIN      6
106
+#endif
105
 #define HEATER_BED_PIN      4
107
 #define HEATER_BED_PIN      4
106
 
108
 
107
 #define FAN_PIN             8
109
 #define FAN_PIN             8
112
 //
114
 //
113
 #define SDSS               53
115
 #define SDSS               53
114
 #define LED_PIN            13
116
 #define LED_PIN            13
115
-#define CASE_LIGHT_PIN      9
117
+#if !MB(MINIRAMBO_10A)
118
+  #define CASE_LIGHT_PIN    9
119
+#endif
116
 
120
 
117
 //
121
 //
118
 // M3/M4/M5 - Spindle/Laser Control
122
 // M3/M4/M5 - Spindle/Laser Control
127
 //
131
 //
128
 #define E_MUX0_PIN         17
132
 #define E_MUX0_PIN         17
129
 #define E_MUX1_PIN         16
133
 #define E_MUX1_PIN         16
130
-#define E_MUX2_PIN         78 // 84 in MK2 Firmware, with BEEPER as 78
134
+#if !MB(MINIRAMBO_10A)
135
+  #define E_MUX2_PIN       78   // 84 in MK2 Firmware, with BEEPER as 78
136
+#endif
131
 
137
 
132
 //
138
 //
133
 // LCD / Controller
139
 // LCD / Controller
134
 //
140
 //
135
 #if ENABLED(ULTRA_LCD)
141
 #if ENABLED(ULTRA_LCD)
136
 
142
 
137
-  #define KILL_PIN         32
143
+  #if !MB(MINIRAMBO_10A)
144
+    #define KILL_PIN       32
145
+  #endif
138
 
146
 
139
   #if ENABLED(NEWPANEL)
147
   #if ENABLED(NEWPANEL)
140
 
148
 
141
-    // Beeper on AUX-4
142
-    #define BEEPER_PIN     84
149
+    #if MB(MINIRAMBO_10A)
150
+
151
+      #define BEEPER_PIN   78
152
+
153
+      #define BTN_EN1      80
154
+      #define BTN_EN2      73
155
+      #define BTN_ENC      21
143
 
156
 
144
-    #define LCD_PINS_RS    82
145
-    #define LCD_PINS_ENABLE 18
146
-    #define LCD_PINS_D4    19
147
-    #define LCD_PINS_D5    70
148
-    #define LCD_PINS_D6    85
149
-    #define LCD_PINS_D7    71
157
+      #define LCD_PINS_RS  38
158
+      #define LCD_PINS_ENABLE 5
159
+      #define LCD_PINS_D4  14
160
+      #define LCD_PINS_D5  15
161
+      #define LCD_PINS_D6  32
162
+      #define LCD_PINS_D7  31
150
 
163
 
151
-    // buttons are directly attached using AUX-2
152
-    #define BTN_EN1        14
153
-    #define BTN_EN2        72
154
-    #define BTN_ENC         9  // the click
164
+      #define SD_DETECT_PIN  72
155
 
165
 
156
-    #define SD_DETECT_PIN  15
166
+    #else // !MINIRAMBO_10A
167
+
168
+      // AUX-4
169
+      #define BEEPER_PIN   84
170
+
171
+      // AUX-2
172
+      #define BTN_EN1      14
173
+      #define BTN_EN2      72
174
+      #define BTN_ENC       9
175
+
176
+      #define LCD_PINS_RS  82
177
+      #define LCD_PINS_ENABLE 18
178
+      #define LCD_PINS_D4  19
179
+      #define LCD_PINS_D5  70
180
+      #define LCD_PINS_D6  85
181
+      #define LCD_PINS_D7  71
182
+
183
+      #define SD_DETECT_PIN  15
184
+
185
+    #endif // !MINIRAMBO_10A
157
 
186
 
158
   #endif // NEWPANEL
187
   #endif // NEWPANEL
188
+
159
 #endif // ULTRA_LCD
189
 #endif // ULTRA_LCD

Loading…
Cancel
Save