Преглед изворни кода

Merge pull request #6932 from thinkyhead/bf_zrib_2.0

Support for ZRIB v2.0 Control Board
Scott Lahteine пре 8 година
родитељ
комит
e2c3695e11

+ 1
- 0
Marlin/boards.h Прегледај датотеку

95
 #define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
95
 #define BOARD_BAM_DICE          401  // 2PrintBeta BAM&DICE with STK drivers
96
 #define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
96
 #define BOARD_BAM_DICE_DUE      402  // 2PrintBeta BAM&DICE Due with STK drivers
97
 #define BOARD_BQ_ZUM_MEGA_3D    503  // bq ZUM Mega 3D
97
 #define BOARD_BQ_ZUM_MEGA_3D    503  // bq ZUM Mega 3D
98
+#define BOARD_ZRIB_V20          504  // zrib V2.0 control board (Chinese knock off RAMPS replica) 
98
 
99
 
99
 #define MB(board) (MOTHERBOARD==BOARD_##board)
100
 #define MB(board) (MOTHERBOARD==BOARD_##board)
100
 
101
 

+ 2
- 0
Marlin/pins.h Прегледај датотеку

174
   #include "pins_MKS_13.h"
174
   #include "pins_MKS_13.h"
175
 #elif MB(SAINSMART_2IN1)
175
 #elif MB(SAINSMART_2IN1)
176
   #include "pins_SAINSMART_2IN1.h"
176
   #include "pins_SAINSMART_2IN1.h"
177
+#elif MB(ZRIB_V20)
178
+  #include "pins_ZRIB_V20.h"
177
 #else
179
 #else
178
   #error "Unknown MOTHERBOARD value set in Configuration.h"
180
   #error "Unknown MOTHERBOARD value set in Configuration.h"
179
 #endif
181
 #endif

+ 4
- 1
Marlin/pins_CHEAPTRONICv2.h Прегледај датотеку

111
 //
111
 //
112
 // Other board specific pins
112
 // Other board specific pins
113
 //
113
 //
114
-#define FILWIDTH_PIN       37
115
 #define LED_PIN            13
114
 #define LED_PIN            13
116
 #define SPINDLE_ENABLE_PIN  4
115
 #define SPINDLE_ENABLE_PIN  4
117
 #define FAN_PIN             3
116
 #define FAN_PIN             3
118
 #define PS_ON_PIN          45
117
 #define PS_ON_PIN          45
119
 #define KILL_PIN           46
118
 #define KILL_PIN           46
119
+
120
+#ifndef FILWIDTH_PIN
121
+  #define FILWIDTH_PIN     37   // should be Analog Input (0-15)
122
+#endif

+ 4
- 1
Marlin/pins_PRINTRBOARD.h Прегледај датотеку

99
 // Misc. Functions
99
 // Misc. Functions
100
 //
100
 //
101
 #define SDSS               26
101
 #define SDSS               26
102
-#define FILWIDTH_PIN        2   // Analog Input
102
+
103
+#ifndef FILWIDTH_PIN
104
+  #define FILWIDTH_PIN      2   // Analog Input
105
+#endif
103
 
106
 
104
 //
107
 //
105
 // LCD / Controller
108
 // LCD / Controller

+ 4
- 1
Marlin/pins_PRINTRBOARD_REVF.h Прегледај датотеку

102
 // Misc. Functions
102
 // Misc. Functions
103
 //
103
 //
104
 #define SDSS               20 // Teensylu pin mapping
104
 #define SDSS               20 // Teensylu pin mapping
105
-#define FILWIDTH_PIN        2 // Analog Input
105
+
106
+#ifndef FILWIDTH_PIN
107
+  #define FILWIDTH_PIN      2   // Analog Input
108
+#endif
106
 
109
 
107
 //
110
 //
108
 // LCD / Controller
111
 // LCD / Controller

+ 4
- 1
Marlin/pins_RAMBO.h Прегледај датотеку

135
 //
135
 //
136
 #define SDSS               53
136
 #define SDSS               53
137
 #define LED_PIN            13
137
 #define LED_PIN            13
138
-#define FILWIDTH_PIN        3   // Analog Input
139
 #define PS_ON_PIN           4
138
 #define PS_ON_PIN           4
140
 #define CASE_LIGHT_PIN     46
139
 #define CASE_LIGHT_PIN     46
141
 
140
 
141
+#ifndef FILWIDTH_PIN
142
+  #define FILWIDTH_PIN      3   // Analog Input
143
+#endif
144
+
142
 //
145
 //
143
 // LCD / Controller
146
 // LCD / Controller
144
 //
147
 //

+ 3
- 2
Marlin/pins_RAMPS.h Прегледај датотеку

196
 #define SDSS               53
196
 #define SDSS               53
197
 #define LED_PIN            13
197
 #define LED_PIN            13
198
 
198
 
199
-// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
200
-#define FILWIDTH_PIN        5   // Analog Input
199
+#ifndef FILWIDTH_PIN
200
+  #define FILWIDTH_PIN      5   // Analog Input on AUX2
201
+#endif
201
 
202
 
202
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
203
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
203
 #define FIL_RUNOUT_PIN      4
204
 #define FIL_RUNOUT_PIN      4

+ 4
- 1
Marlin/pins_SCOOVO_X9H.h Прегледај датотеку

118
 #define SDSS                53
118
 #define SDSS                53
119
 #define LED_PIN             13
119
 #define LED_PIN             13
120
 #define PS_ON_PIN            4
120
 #define PS_ON_PIN            4
121
-#define FILWIDTH_PIN         3   // Analog Input
121
+
122
+#ifndef FILWIDTH_PIN
123
+  #define FILWIDTH_PIN       3   // Analog Input
124
+#endif
122
 
125
 
123
 //
126
 //
124
 // LCD / Controller
127
 // LCD / Controller

+ 39
- 0
Marlin/pins_ZRIB_V20.h Прегледај датотеку

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
+ * ZRIB V2.0 pin assignments
25
+ */
26
+
27
+#define ZRIB_V20_D6_PIN 6
28
+#define ZRIB_V20_D9_PIN 9
29
+#define RAMPS_D9_PIN         ZRIB_V20_D6_PIN
30
+#define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D9_PIN
31
+#define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D9_PIN
32
+#define ORIG_E2_AUTO_FAN_PIN ZRIB_V20_D9_PIN
33
+#define ORIG_E3_AUTO_FAN_PIN ZRIB_V20_D9_PIN
34
+
35
+#ifndef FILWIDTH_PIN
36
+  #define FILWIDTH_PIN 11   // Analog Input
37
+#endif
38
+
39
+#include "pins_MKS_13.h"

Loading…
Откажи
Сачувај