Browse Source

[2.0.x] Add pin configuration for Fysetc F6 (#11932)

Mitch Roote 6 years ago
parent
commit
d016b572e3
3 changed files with 197 additions and 0 deletions
  1. 1
    0
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 194
    0
      Marlin/src/pins/pins_FYSETC_F6_13.h

+ 1
- 0
Marlin/src/core/boards.h View File

@@ -84,6 +84,7 @@
84 84
 #define BOARD_TRIGORILLA_14     443   // TriGorilla Anycubic version 1.4 based on RAMPS EFB
85 85
 #define BOARD_RAMPS_ENDER_4     243   // Creality: Ender-4, CR-8
86 86
 #define BOARD_GT2560_V3         76    // Geeetech A10
87
+#define BOARD_FYSETC_F6_13      541   // Fysetc F6
87 88
 
88 89
 //
89 90
 // Other ATmega1280, ATmega2560

+ 2
- 0
Marlin/src/pins/pins.h View File

@@ -152,6 +152,8 @@
152 152
   #include "pins_RAMPS_ENDER_4.h"     // ATmega2560                                 env:megaatmega2560
153 153
 #elif MB(GT2560_V3)
154 154
   #include "pins_GT2560_V3.h"         // ATmega2560                                 env:megaatmega2560
155
+#elif MB(FYSETC_F6_13)
156
+  #include "pins_FYSETC_F6_13.h"      // ATmega2560                                 env:megaatmega2560
155 157
 
156 158
 //
157 159
 // Other ATmega1280, ATmega2560

+ 194
- 0
Marlin/src/pins/pins_FYSETC_F6_13.h View File

@@ -0,0 +1,194 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2018 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
+// Fysetc F6 pin assignments
25
+//
26
+
27
+#ifndef __AVR_ATmega2560__
28
+  #error "Oops!  Make sure you have 'FYSETC_F6' selected from the 'Tools -> Boards' menu."
29
+#endif
30
+
31
+#ifndef BOARD_NAME
32
+  #define BOARD_NAME "FYSETC_F6_13"
33
+#endif
34
+
35
+//
36
+// Limit Switches
37
+//
38
+#define X_MIN_PIN          63
39
+#define X_MAX_PIN          64
40
+#define Y_MIN_PIN          14
41
+#define Y_MAX_PIN          15
42
+#define Z_MIN_PIN          12
43
+#define Z_MAX_PIN           9
44
+
45
+#ifndef FIL_RUNOUT_PIN
46
+  #define FIL_RUNOUT_PIN   10
47
+#endif
48
+
49
+//
50
+// Z Probe (when not Z_MIN_PIN)
51
+//
52
+#ifndef Z_MIN_PROBE_PIN
53
+  #define Z_MIN_PROBE_PIN   9   // Servos pin
54
+#endif
55
+
56
+//
57
+// Steppers
58
+//
59
+#define X_STEP_PIN         54
60
+#define X_DIR_PIN          55
61
+#define X_ENABLE_PIN       38
62
+#ifndef X_CS_PIN
63
+  #define X_CS_PIN         70
64
+#endif
65
+
66
+#define Y_STEP_PIN         60
67
+#define Y_DIR_PIN          61
68
+#define Y_ENABLE_PIN       56
69
+#ifndef Y_CS_PIN
70
+  #define Y_CS_PIN         39
71
+#endif
72
+
73
+#define Z_STEP_PIN         43
74
+#define Z_DIR_PIN          48
75
+#define Z_ENABLE_PIN       58
76
+#ifndef Z_CS_PIN
77
+  #define Z_CS_PIN         74
78
+#endif
79
+
80
+#define E0_STEP_PIN        26
81
+#define E0_DIR_PIN         28
82
+#define E0_ENABLE_PIN      24
83
+#ifndef E0_CS_PIN
84
+  #define E0_CS_PIN        47
85
+#endif
86
+
87
+#define E1_STEP_PIN        36
88
+#define E1_DIR_PIN         34
89
+#define E1_ENABLE_PIN      30
90
+#ifndef E1_CS_PIN
91
+  #define E1_CS_PIN        32
92
+#endif
93
+
94
+#define E2_STEP_PIN        59
95
+#define E2_DIR_PIN         57
96
+#define E2_ENABLE_PIN      40
97
+#ifndef E2_CS_PIN
98
+  #define E2_CS_PIN        42
99
+#endif
100
+
101
+//
102
+// Sensorless homing DIAG pin is not directly connected to the MCU. Close
103
+// the jumper next to the limit switch socket when using sensorless homing.
104
+//
105
+
106
+#define X_TMC2130_DIAG     -1
107
+#define Y_TMC2130_DIAG     -1
108
+#define Z_TMC2130_DIAG     -1
109
+#define E0_TMC2130_DIAG    -1
110
+#define E1_TMC2130_DIAG    -1
111
+#define E2_TMC2130_DIAG    -1
112
+
113
+#if HAS_DRIVER(TMC2208)
114
+  // Software serial
115
+  #define X_SERIAL_RX_PIN  71
116
+  #define X_SERIAL_TX_PIN  72
117
+  #define Y_SERIAL_RX_PIN  73
118
+  #define Y_SERIAL_TX_PIN  75
119
+  #define Z_SERIAL_RX_PIN  78
120
+  #define Z_SERIAL_TX_PIN  79
121
+  #define E0_SERIAL_RX_PIN 76
122
+  #define E0_SERIAL_TX_PIN 77
123
+  #define E1_SERIAL_RX_PIN 80
124
+  #define E1_SERIAL_TX_PIN 81
125
+  #define E2_SERIAL_RX_PIN 22
126
+  #define E2_SERIAL_TX_PIN 83
127
+#endif
128
+
129
+//
130
+// Temperature Sensors
131
+//
132
+#define TEMP_0_PIN         12   // Analog Input
133
+#define TEMP_1_PIN         13   // Analog Input
134
+#define TEMP_2_PIN         14   // Analog Input
135
+#define TEMP_BED_PIN       15   // Analog Input
136
+
137
+#ifndef FILWIDTH_PIN
138
+  #define FILWIDTH_PIN      9   // Analog Input on X+ endstop
139
+#endif
140
+
141
+//
142
+// Heaters / Fans
143
+//
144
+#define HEATER_0_PIN        5
145
+#define HEATER_1_PIN        6
146
+#define HEATER_2_PIN        7
147
+#define HEATER_BED_PIN      8
148
+
149
+#define FAN_PIN            44
150
+#define FAN1_PIN           45
151
+#define FAN2_PIN           46
152
+
153
+//
154
+// Misc. Functions
155
+//
156
+#define SDSS               53
157
+#define LED_PIN            13
158
+#define KILL_PIN           41
159
+
160
+#ifndef PS_ON_PIN
161
+  #define PS_ON_PIN        11   // Servos pin
162
+#endif
163
+
164
+#ifndef RGB_LED_R_PIN
165
+  #define RGB_LED_R_PIN     3
166
+#endif
167
+#ifndef RGB_LED_G_PIN
168
+  #define RGB_LED_G_PIN     4
169
+#endif
170
+#ifndef RGB_LED_B_PIN
171
+  #define RGB_LED_B_PIN     9
172
+#endif
173
+#ifndef RGB_LED_W_PIN
174
+  #define RGB_LED_W_PIN    -1
175
+#endif
176
+
177
+//
178
+// LCDs and Controllers
179
+//
180
+#define BEEPER_PIN         37
181
+#define SD_DETECT_PIN      49
182
+
183
+#define LCD_PINS_RS        16
184
+#define LCD_PINS_ENABLE    17
185
+#define LCD_PINS_D4        23
186
+#define LCD_PINS_D5        25
187
+#define LCD_PINS_D6        27
188
+#define LCD_PINS_D7        29
189
+
190
+#if ENABLED(NEWPANEL)
191
+  #define BTN_EN1          31
192
+  #define BTN_EN2          33
193
+  #define BTN_ENC          35
194
+#endif

Loading…
Cancel
Save