Browse Source

Add FLY_CDY board (#19979)

Co-authored-by: FLYmaker <FLYmaker@users.noreply.github.com>
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Co-authored-by: Jason Smith <jason.inet@gmail.com>
石立枫 3 years ago
parent
commit
9b2e810bdf
No account linked to committer's email address
3 changed files with 191 additions and 0 deletions
  1. 1
    0
      Marlin/src/core/boards.h
  2. 188
    0
      Marlin/src/pins/lpc1769/pins_FLY_CDY.h
  3. 2
    0
      Marlin/src/pins/pins.h

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

@@ -243,6 +243,7 @@
243 243
 #define BOARD_BTT_SKR_V1_4_TURBO      2508  // BigTreeTech SKR v1.4 TURBO (Power outputs: Hotend0, Hotend1, Fan, Bed)
244 244
 #define BOARD_MKS_SGEN_L_V2           2509  // MKS SGEN_L V2 (Power outputs: Hotend0, Hotend1, Bed, Fan)
245 245
 #define BOARD_BTT_SKR_E3_TURBO        2510  // BigTreeTech SKR E3 Turbo (Power outputs: Hotend0, Hotend1, Bed, Fan0, Fan1)
246
+#define BOARD_FLY_CDY                 2511  // FLY_CDY (Power outputs: Hotend0, Hotend1, Hotend2, Bed, Fan0, Fan1, Fan2)
246 247
 
247 248
 //
248 249
 // SAM3X8E ARM Cortex M3

+ 188
- 0
Marlin/src/pins/lpc1769/pins_FLY_CDY.h View File

@@ -0,0 +1,188 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+#if NOT_TARGET(MCU_LPC1769)
25
+  #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
26
+#endif
27
+
28
+#define BOARD_INFO_NAME   "FLY-CDY"
29
+#define BOARD_WEBSITE_URL "https://github.com/FLYmaker/FLY-CDY"
30
+
31
+//
32
+// Servos
33
+//
34
+#define SERVO0_PIN                         P1_26
35
+
36
+
37
+//
38
+// Limit Switches
39
+//
40
+
41
+#define X_MIN_PIN                          P1_29  // X-
42
+#define X_MAX_PIN                          P1_28  // X+
43
+#define Y_MIN_PIN                          P1_27  // Y-
44
+#define Y_MAX_PIN                          P1_25  // Y+
45
+#define Z_MIN_PIN                          P1_22  // Z-
46
+#define Z_MAX_PIN                          P0_27  // Z+
47
+
48
+
49
+//
50
+// Steppers
51
+//
52
+#define X_STEP_PIN                         P2_00
53
+#define X_DIR_PIN                          P1_01
54
+#define X_ENABLE_PIN                       P1_00
55
+#ifndef X_CS_PIN
56
+  #define X_CS_PIN                         P1_04
57
+#endif
58
+
59
+#define Y_STEP_PIN                         P2_01
60
+#define Y_DIR_PIN                          P1_09
61
+#define Y_ENABLE_PIN                       P1_08
62
+#ifndef Y_CS_PIN
63
+  #define Y_CS_PIN                         P1_10
64
+#endif
65
+
66
+#define Z_STEP_PIN                         P2_02
67
+#define Z_DIR_PIN                          P1_15
68
+#define Z_ENABLE_PIN                       P1_14
69
+#ifndef Z_CS_PIN
70
+  #define Z_CS_PIN                         P1_16
71
+#endif
72
+
73
+#define E0_STEP_PIN                        P2_03
74
+#define E0_DIR_PIN                         P4_29
75
+#define E0_ENABLE_PIN                      P1_17
76
+#ifndef E0_CS_PIN
77
+  #define E0_CS_PIN                        P4_28
78
+#endif
79
+
80
+#define E1_STEP_PIN                        P2_04
81
+#define E1_DIR_PIN                         P2_11
82
+#define E1_ENABLE_PIN                      P0_04
83
+#ifndef E1_CS_PIN
84
+  #define E1_CS_PIN                        P2_12
85
+#endif
86
+
87
+#define E2_STEP_PIN                        P2_05
88
+#define E2_DIR_PIN                         P0_11
89
+#define E2_ENABLE_PIN                      P2_13
90
+#ifndef E2_CS_PIN
91
+  #define E2_CS_PIN                        P0_10
92
+#endif
93
+
94
+//
95
+// Software SPI pins for TMC2130 stepper drivers
96
+//
97
+#if ENABLED(TMC_USE_SW_SPI)
98
+  #ifndef TMC_SW_MOSI
99
+    #define TMC_SW_MOSI                    P0_20
100
+  #endif
101
+  #ifndef TMC_SW_MISO
102
+    #define TMC_SW_MISO                    P0_19
103
+  #endif
104
+  #ifndef TMC_SW_SCK
105
+    #define TMC_SW_SCK                     P0_21
106
+  #endif
107
+#endif
108
+
109
+
110
+#if HAS_TMC_UART
111
+  #define X_SERIAL_TX_PIN                  P1_04
112
+  #define X_SERIAL_RX_PIN                  P1_04
113
+
114
+  #define Y_SERIAL_TX_PIN                  P1_10
115
+  #define Y_SERIAL_RX_PIN                  P1_10
116
+
117
+  #define Z_SERIAL_TX_PIN                  P1_16
118
+  #define Z_SERIAL_RX_PIN                  P1_16
119
+
120
+  #define E0_SERIAL_TX_PIN                 P4_28
121
+  #define E0_SERIAL_RX_PIN                 P4_28
122
+
123
+  #define E1_SERIAL_TX_PIN                 P2_12
124
+  #define E1_SERIAL_RX_PIN                 P2_12
125
+
126
+  #define E2_SERIAL_TX_PIN                 P0_10
127
+  #define E2_SERIAL_RX_PIN                 P0_10
128
+
129
+  // Reduce baud rate to improve software serial reliability
130
+  #define TMC_BAUD_RATE                    19200
131
+#endif
132
+
133
+
134
+
135
+//
136
+// Temperature Sensors
137
+//
138
+#define TEMP_0_PIN                      P0_26_A3  // (T4)
139
+#define TEMP_1_PIN                      P0_25_A2  // (T3)
140
+#define TEMP_2_PIN                      P0_24_A1  // (T2)
141
+#define TEMP_BED_PIN                    P0_23_A0  // (T1)
142
+
143
+//
144
+// Heaters / Fans
145
+//
146
+#define HEATER_BED_PIN                     P3_26
147
+#define HEATER_0_PIN                       P3_25
148
+#define HEATER_1_PIN                       P1_20
149
+#define HEATER_2_PIN                       P1_23
150
+#ifndef FAN_PIN
151
+  #define FAN_PIN                          P1_18
152
+#endif
153
+#define FAN1_PIN                           P1_21
154
+#define FAN2_PIN                           P1_24
155
+
156
+
157
+//
158
+// LCD / Controller
159
+//
160
+#define BEEPER_PIN                         P2_07
161
+#define LCD_PINS_RS                        P2_10
162
+#define LCD_PINS_ENABLE                    P0_22
163
+#define LCD_PINS_D4                        P1_19
164
+#define LCD_PINS_D5                        P2_08
165
+#define LCD_PINS_D6                        P1_30
166
+#define LCD_PINS_D7                        P1_31
167
+#define BTN_EN1                            P0_00
168
+#define BTN_EN2                            P0_01
169
+#define BTN_ENC                            P0_28
170
+
171
+
172
+#ifndef SDCARD_CONNECTION
173
+  #define SDCARD_CONNECTION              ONBOARD
174
+#endif
175
+
176
+#if SD_CONNECTION_IS(ONBOARD)
177
+    #define SS_PIN                         P0_06
178
+    #define SCK_PIN                        P0_07
179
+    #define MISO_PIN                       P0_08
180
+    #define MOSI_PIN                       P0_09
181
+    #define SD_DETECT_PIN                  P0_05
182
+#elif SD_CONNECTION_IS(LCD)
183
+  #define SCK_PIN                          P0_15
184
+  #define MISO_PIN                         P0_17
185
+  #define MOSI_PIN                         P0_18
186
+  #define SS_PIN                           P0_16
187
+  #define SD_DETECT_PIN                    P2_06
188
+#endif

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

@@ -433,6 +433,8 @@
433 433
   #include "lpc1769/pins_MKS_SGEN_L_V2.h"       // LPC1769                                env:LPC1769
434 434
 #elif MB(BTT_SKR_E3_TURBO)
435 435
   #include "lpc1769/pins_BTT_SKR_E3_TURBO.h"    // LPC1769                                env:LPC1769
436
+#elif MB(FLY_CDY)
437
+  #include "lpc1769/pins_FLY_CDY.h"             // LPC1769                                env:LPC1769
436 438
 
437 439
 //
438 440
 // Due (ATSAM) boards

Loading…
Cancel
Save