Marcio Teixeira hace 6 años
padre
commit
9356cf648f

+ 3
- 0
Marlin/Makefile Ver fichero

@@ -277,6 +277,9 @@ MCU              ?= atmega2560
277 277
 else ifeq  ($(HARDWARE_MOTHERBOARD),304)
278 278
 HARDWARE_VARIANT ?= arduino
279 279
 MCU              ?= atmega2560
280
+else ifeq  ($(HARDWARE_MOTHERBOARD),305)
281
+HARDWARE_VARIANT ?= arduino
282
+MCU              ?= atmega2560
280 283
 else ifeq  ($(HARDWARE_MOTHERBOARD),21)
281 284
 HARDWARE_VARIANT ?= arduino
282 285
 MCU              ?= atmega2560

+ 1
- 0
Marlin/src/core/boards.h Ver fichero

@@ -95,6 +95,7 @@
95 95
 #define BOARD_MINIRAMBO         302   // Mini-Rambo
96 96
 #define BOARD_MINIRAMBO_10A     303   // Mini-Rambo 1.0a
97 97
 #define BOARD_EINSY_RAMBO       304   // Einsy Rambo
98
+#define BOARD_EINSY_RETRO       305   // Einsy Retro
98 99
 #define BOARD_ELEFU_3           21    // Elefu Ra Board (v3)
99 100
 #define BOARD_LEAPFROG          999   // Leapfrog
100 101
 #define BOARD_MEGACONTROLLER    310   // Mega controller

+ 2
- 0
Marlin/src/pins/pins.h Ver fichero

@@ -163,6 +163,8 @@
163 163
   #include "pins_MINIRAMBO.h"         // ATmega2560
164 164
 #elif MB(EINSY_RAMBO)
165 165
   #include "pins_EINSY_RAMBO.h"       // ATmega2560
166
+#elif MB(EINSY_RETRO)
167
+  #include "pins_EINSY_RETRO.h"       // ATmega2560
166 168
 #elif MB(ELEFU_3)
167 169
   #include "pins_ELEFU_3.h"           // ATmega2560
168 170
 #elif MB(LEAPFROG)

+ 14
- 35
Marlin/src/pins/pins_EINSY_RAMBO.h Ver fichero

@@ -28,8 +28,7 @@
28 28
   #error "Oops!  Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu."
29 29
 #endif
30 30
 
31
-#define BOARD_NAME          "Einsy Rambo"
32
-#define LARGE_FLASH         true
31
+#define BOARD_NAME         "Einsy Rambo"
33 32
 
34 33
 //
35 34
 // TMC2130 Configuration_adv defaults for EinsyRambo
@@ -41,10 +40,10 @@
41 40
 #endif
42 41
 
43 42
 // TMC2130 Diag Pins (currently just for reference)
44
-#define X_DIAG_PIN      64
45
-#define Y_DIAG_PIN      69
46
-#define Z_DIAG_PIN      68
47
-#define E0_DIAG_PIN     65
43
+#define X_DIAG_PIN         64
44
+#define Y_DIAG_PIN         69
45
+#define Z_DIAG_PIN         68
46
+#define E0_DIAG_PIN        65
48 47
 
49 48
 //
50 49
 // Limit Switches
@@ -55,26 +54,22 @@
55 54
 // SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING.
56 55
 //
57 56
 
58
-#define X_MAX_PIN          -1
59
-#define Y_MAX_PIN          -1
60
-#define Z_MAX_PIN          -1
61
-
62 57
 #if DISABLED(SENSORLESS_HOMING)
63 58
 
64
-  #define X_MIN_PIN          12
65
-  #define Y_MIN_PIN          11
66
-  #define Z_MIN_PIN          10
59
+  #define X_STOP_PIN       12
60
+  #define Y_STOP_PIN       11
61
+  #define Z_STOP_PIN       10
67 62
 
68 63
 #else
69 64
 
70
-  #define X_MIN_PIN          X_DIAG_PIN
71
-  #define Y_MIN_PIN          Y_DIAG_PIN
65
+  #define X_STOP_PIN       X_DIAG_PIN
66
+  #define Y_STOP_PIN       Y_DIAG_PIN
72 67
 
73 68
   #if ENABLED(BLTOUCH)
74
-    #define Z_MIN_PIN        11   // Y-MIN
75
-    #define SERVO0_PIN       10   // Z-MIN
69
+    #define Z_STOP_PIN     11   // Y-MIN
70
+    #define SERVO0_PIN     10   // Z-MIN
76 71
   #else
77
-    #define Z_MIN_PIN        10
72
+    #define Z_STOP_PIN     10
78 73
   #endif
79 74
 
80 75
 #endif
@@ -109,20 +104,6 @@
109 104
 #define E0_ENABLE_PIN      26
110 105
 #define E0_CS_PIN          66
111 106
 
112
-#define E1_STEP_PIN        -1
113
-#define E1_DIR_PIN         -1
114
-#define E1_ENABLE_PIN      -1
115
-
116
-// Microstepping pins - uses SPI instead
117
-#define X_MS1_PIN          -1
118
-#define X_MS2_PIN          -1
119
-#define Y_MS1_PIN          -1
120
-#define Y_MS2_PIN          -1
121
-#define Z_MS1_PIN          -1
122
-#define Z_MS2_PIN          -1
123
-#define E0_MS1_PIN         -1
124
-#define E0_MS2_PIN         -1
125
-
126 107
 //
127 108
 // Temperature Sensors
128 109
 //
@@ -134,8 +115,6 @@
134 115
 // Heaters / Fans
135 116
 //
136 117
 #define HEATER_0_PIN        3
137
-#define HEATER_1_PIN       -1
138
-#define HEATER_2_PIN       -1
139 118
 #define HEATER_BED_PIN      4
140 119
 
141 120
 #define FAN_PIN             8
@@ -168,7 +147,7 @@
168 147
 //
169 148
 #if ENABLED(ULTRA_LCD)
170 149
 
171
-  #define KILL_PIN 32
150
+  #define KILL_PIN         32
172 151
 
173 152
   #if ENABLED(NEWPANEL)
174 153
 

+ 193
- 0
Marlin/src/pins/pins_EINSY_RETRO.h Ver fichero

@@ -0,0 +1,193 @@
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
+ * Einsy-Retro pin assignments
25
+ */
26
+
27
+#ifndef __AVR_ATmega2560__
28
+  #error "Oops!  Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu."
29
+#endif
30
+
31
+#define BOARD_NAME         "Einsy Retro"
32
+
33
+//
34
+// TMC2130 Configuration_adv defaults for EinsyRetro
35
+//
36
+#if DISABLED(HAVE_TMC2130)
37
+  #error "You must enable TMC2130 support in Configuration_adv.h for EinsyRetro."
38
+#elif DISABLED(X_IS_TMC2130) || DISABLED(Y_IS_TMC2130) || DISABLED(Z_IS_TMC2130) || DISABLED(E0_IS_TMC2130)
39
+  #error "You must enable ([XYZ]|E0)_IS_TMC2130 in Configuration_adv.h for EinsyRetro."
40
+#endif
41
+
42
+// TMC2130 Diag Pins (currently just for reference)
43
+#define X_DIAG_PIN         64
44
+#define Y_DIAG_PIN         69
45
+#define Z_DIAG_PIN         68
46
+#define E0_DIAG_PIN        65
47
+
48
+//
49
+// Limit Switches
50
+//
51
+// Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers.
52
+// Otherwise use a physical endstop based configuration.
53
+//
54
+// SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING.
55
+//
56
+
57
+#if DISABLED(SENSORLESS_HOMING)
58
+
59
+  #define X_MIN_PIN        12
60
+  #define Y_MIN_PIN        11
61
+  #define Z_MIN_PIN        10
62
+  #define X_MAX_PIN        81
63
+  #define Y_MAX_PIN        57
64
+
65
+#else
66
+
67
+  #if X_HOME_DIR == -1
68
+    #define X_MIN_PIN      X_DIAG_PIN
69
+    #define X_MAX_PIN      81
70
+  #else
71
+    #define X_MIN_PIN      12
72
+    #define X_MAX_PIN      X_DIAG_PIN
73
+  #endif
74
+
75
+  #if Y_HOME_DIR == -1
76
+    #define Y_MIN_PIN      Y_DIAG_PIN
77
+    #define Y_MAX_PIN      57
78
+  #else
79
+    #define Y_MIN_PIN      11
80
+    #define Y_MAX_PIN      Y_DIAG_PIN
81
+  #endif
82
+
83
+  #if ENABLED(BLTOUCH)
84
+    #define Z_MIN_PIN      11   // Y-MIN
85
+    #define SERVO0_PIN     10   // Z-MIN
86
+  #else
87
+    #define Z_MIN_PIN      10
88
+  #endif
89
+
90
+#endif
91
+
92
+#define Z_MAX_PIN           7
93
+
94
+//
95
+// Z Probe (when not Z_MIN_PIN)
96
+//
97
+#ifndef Z_MIN_PROBE_PIN
98
+  #define Z_MIN_PROBE_PIN  10
99
+#endif
100
+
101
+//
102
+// Steppers
103
+//
104
+#define X_STEP_PIN         37
105
+#define X_DIR_PIN          49
106
+#define X_ENABLE_PIN       29
107
+#define X_CS_PIN           41
108
+
109
+#define Y_STEP_PIN         36
110
+#define Y_DIR_PIN          48
111
+#define Y_ENABLE_PIN       28
112
+#define Y_CS_PIN           39
113
+
114
+#define Z_STEP_PIN         35
115
+#define Z_DIR_PIN          47
116
+#define Z_ENABLE_PIN       27
117
+#define Z_CS_PIN           67
118
+
119
+#define E0_STEP_PIN        34
120
+#define E0_DIR_PIN         43
121
+#define E0_ENABLE_PIN      26
122
+#define E0_CS_PIN          66
123
+
124
+//
125
+// Temperature Sensors
126
+//
127
+#define TEMP_0_PIN          0   // Analog Input
128
+#define TEMP_1_PIN          1   // Analog Input
129
+#define TEMP_BED_PIN        2   // Analog Input
130
+
131
+//
132
+// Heaters / Fans
133
+//
134
+#define HEATER_0_PIN        3
135
+#define HEATER_BED_PIN      4
136
+
137
+#define FAN_PIN             8
138
+#define FAN1_PIN            6
139
+
140
+//
141
+// Misc. Functions
142
+//
143
+#define SDSS               53
144
+#define LED_PIN            13
145
+#define CASE_LIGHT_PIN      9
146
+
147
+//
148
+// M3/M4/M5 - Spindle/Laser Control
149
+//
150
+// use P1 connector for spindle pins
151
+#define SPINDLE_LASER_PWM_PIN     9   // MUST BE HARDWARE PWM
152
+#define SPINDLE_LASER_ENABLE_PIN 18   // Pin should have a pullup!
153
+#define SPINDLE_DIR_PIN          19
154
+
155
+//
156
+// Průša i3 MK2 Multiplexer Support
157
+//
158
+#define E_MUX0_PIN         17
159
+#define E_MUX1_PIN         16
160
+#define E_MUX2_PIN         78   // 84 in MK2 Firmware, with BEEPER as 78
161
+
162
+//
163
+// LCD / Controller
164
+//
165
+#if ENABLED(ULTRA_LCD)
166
+
167
+  #define KILL_PIN         32
168
+
169
+  #if ENABLED(NEWPANEL)
170
+
171
+    #if ENABLED(CR10_STOCKDISPLAY)
172
+      #define LCD_PINS_RS     85
173
+      #define LCD_PINS_ENABLE 71
174
+      #define LCD_PINS_D4     70
175
+      #define BTN_EN1         18
176
+      #define BTN_EN2         19
177
+    #else
178
+      #define LCD_PINS_RS     82
179
+      #define LCD_PINS_ENABLE 18
180
+      #define LCD_PINS_D4     19
181
+      #define LCD_PINS_D5     70
182
+      #define LCD_PINS_D6     85
183
+      #define LCD_PINS_D7     71
184
+      #define BTN_EN1         14
185
+      #define BTN_EN2         72
186
+    #endif
187
+
188
+    #define BTN_ENC            9   // AUX-2
189
+    #define BEEPER_PIN        84   // AUX-4
190
+    #define SD_DETECT_PIN     15
191
+
192
+  #endif // NEWPANEL
193
+#endif // ULTRA_LCD

Loading…
Cancelar
Guardar