Browse Source

Add pins for Lerdge X and K. (#15271)

J.C. Nelson 5 years ago
parent
commit
896162b722

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

@@ -294,6 +294,8 @@
294 294
 #define BOARD_STEVAL                  4206  // STEVAL-3DP001V1 3D PRINTER BOARD
295 295
 #define BOARD_BIGTREE_SKR_PRO_V1_1    4207  // BigTreeTech SKR Pro v1.1 (STM32F407ZG)
296 296
 #define BOARD_BIGTREE_BTT002_V1_0     4208  // BigTreeTech BTT002 v1.0 (STM32F407VE)
297
+#define BOARD_LERDGE_K                4209  // Lerdge K (STM32F407VE)
298
+#define BOARD_LERDGE_X                4210  // Lerdge X (STM32F407VE)
297 299
 
298 300
 //
299 301
 // ARM Cortex M7

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

@@ -508,6 +508,10 @@
508 508
   #include "stm32/pins_BIGTREE_SKR_PRO_V1.1.h"  // STM32F4                                env:BIGTREE_SKR_PRO
509 509
 #elif MB(BIGTREE_BTT002_V1_0)
510 510
   #include "stm32/pins_BIGTREE_BTT002_V1.0.h"   // STM32F4                                env:BIGTREE_BTT002
511
+#elif MB(LERDGE_K)
512
+  #include "stm32/pins_LERDGE_K.h"              // STM32F4                                env:STM32F4
513
+#elif MB(LERDGE_X)
514
+  #include "stm32/pins_LERDGE_X.h"              // STM32F4                                env:STM32F4
511 515
 
512 516
 //
513 517
 // ARM Cortex M7

+ 184
- 0
Marlin/src/pins/stm32/pins_LERDGE_K.h View File

@@ -0,0 +1,184 @@
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
+#pragma once
23
+
24
+#if !defined(STM32F4) && !defined(STM32F4xx)
25
+  #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
+#elif HOTENDS > 2 || E_STEPPERS > 2
27
+  #error "LERDGE K supports up to 2 hotends / E-steppers."
28
+#endif
29
+
30
+#define BOARD_INFO_NAME      "Lerdge K"
31
+#define DEFAULT_MACHINE_NAME "LERDGE"
32
+
33
+#define I2C_EEPROM
34
+
35
+// Ignore temp readings during develpment.
36
+//#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
37
+
38
+//
39
+// Servos
40
+//
41
+//#define SERVO0_PIN         PD12
42
+
43
+//
44
+// Limit Switches
45
+//
46
+#define X_STOP_PIN         PG3
47
+#define Y_STOP_PIN         PG4
48
+#define Z_STOP_PIN         PG5
49
+
50
+//
51
+// Z Probe (when not Z_MIN_PIN)
52
+//
53
+//#ifndef Z_MIN_PROBE_PIN
54
+//  #define Z_MIN_PROBE_PIN  PB15
55
+//#endif
56
+
57
+//
58
+// Filament runout
59
+//
60
+#define FIL_RUNOUT_PIN     PE6
61
+#define FIL_RUNOUT2_PIN    PE7
62
+
63
+//
64
+// Steppers
65
+//
66
+#define X_STEP_PIN         PG1
67
+#define X_DIR_PIN          PB10
68
+#define X_ENABLE_PIN       PG0
69
+//#ifndef X_CS_PIN
70
+//  #define X_CS_PIN       PE0
71
+//#endif
72
+
73
+#define Y_STEP_PIN         PF14
74
+#define Y_DIR_PIN          PF15
75
+#define Y_ENABLE_PIN       PF13
76
+//#ifndef Y_CS_PIN
77
+//  #define Y_CS_PIN       PE1
78
+//#endif
79
+
80
+#define Z_STEP_PIN         PF11
81
+#define Z_DIR_PIN          PF12
82
+#define Z_ENABLE_PIN       PC5
83
+//#ifndef Z_CS_PIN
84
+//  #define Z_CS_PIN       PE2
85
+//#endif
86
+
87
+#define E0_STEP_PIN        PC14
88
+#define E0_DIR_PIN         PC13
89
+#define E0_ENABLE_PIN      PC15
90
+//#ifndef E0_CS_PIN
91
+//  #define E0_CS_PIN      PE3
92
+//#endif
93
+
94
+#define E1_STEP_PIN        PF1
95
+#define E1_DIR_PIN         PF0
96
+#define E1_ENABLE_PIN      PF2
97
+//#ifndef E1_CS_PIN
98
+//  #define E1_CS_PIN      PE4
99
+//#endif
100
+
101
+//
102
+// Temperature Sensors
103
+//
104
+#define TEMP_0_PIN         PC1   // Analog Input
105
+#define TEMP_1_PIN         PC2   // Analog Input
106
+#define TEMP_BED_PIN       PC0   // Analog Input
107
+
108
+//
109
+// Heaters / Fans
110
+//
111
+#define HEATER_0_PIN       PA1
112
+#define HEATER_1_PIN       PA0
113
+#define HEATER_BED_PIN     PA2
114
+
115
+#ifndef FAN_PIN
116
+  #define FAN_PIN          PC15
117
+#endif
118
+#define FAN1_PIN           PF6
119
+#define FAN2_PIN           PF7
120
+
121
+#define ORIG_E0_AUTO_FAN_PIN  FAN1_PIN // Use this by NOT overriding E0_AUTO_FAN_PIN
122
+
123
+//
124
+// LED / Lighting
125
+//
126
+//#define CASE_LIGHT_PIN_CI -1
127
+//#define CASE_LIGHT_PIN_DO -1
128
+//#define NEOPIXEL_PIN      -1
129
+
130
+//
131
+// Prusa i3 MK2 Multi-Material Multiplexer Support
132
+//
133
+//#define E_MUX0_PIN         -1
134
+//#define E_MUX1_PIN         -1
135
+
136
+//
137
+// SD support
138
+//
139
+#define SDIO_SUPPORT
140
+
141
+//
142
+// Misc. Functions
143
+//
144
+#define SDSS               PC11
145
+#define LED_PIN            PC7   // Alive
146
+#define PS_ON_PIN          -1
147
+#define KILL_PIN           -1
148
+#define POWER_LOSS_PIN     -1    // Power-loss / nAC_FAULT
149
+
150
+#define SCK_PIN            PC12
151
+#define MISO_PIN           PC8
152
+#define MOSI_PIN           PD2
153
+#define SS_PIN             PC11
154
+
155
+//
156
+// LCD / Controller
157
+//
158
+
159
+// TODO: Replace these with the correct FSMC pins, once known
160
+#define SD_DETECT_PIN      -1
161
+#define BEEPER_PIN         PD12
162
+#define LCD_PINS_RS        -1
163
+#define LCD_PINS_ENABLE    -1
164
+#define LCD_PINS_D4        -1
165
+#define LCD_PINS_D5        -1
166
+#define LCD_PINS_D6        -1
167
+#define LCD_PINS_D7        -1
168
+
169
+#define BTN_EN1            PE3
170
+#define BTN_EN2            PE4
171
+#define BTN_ENC            PE2
172
+
173
+//
174
+// ST7920 Delays
175
+//
176
+#ifndef ST7920_DELAY_1
177
+  #define ST7920_DELAY_1 DELAY_NS(96)
178
+#endif
179
+#ifndef ST7920_DELAY_2
180
+  #define ST7920_DELAY_2 DELAY_NS(48)
181
+#endif
182
+#ifndef ST7920_DELAY_3
183
+  #define ST7920_DELAY_3 DELAY_NS(715)
184
+#endif

+ 181
- 0
Marlin/src/pins/stm32/pins_LERDGE_X.h View File

@@ -0,0 +1,181 @@
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
+#pragma once
23
+
24
+#if !defined(STM32F4) && !defined(STM32F4xx)
25
+  #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
26
+#elif HOTENDS > 2 || E_STEPPERS > 2
27
+  #error "LERDGE X supports up to 2 hotends / E-steppers."
28
+#endif
29
+
30
+#define BOARD_INFO_NAME      "Lerdge X"
31
+#define DEFAULT_MACHINE_NAME "LERDGE"
32
+
33
+//#define I2C_EEPROM
34
+
35
+//
36
+// Servos
37
+//
38
+//#define SERVO0_PIN         PD12
39
+//#define SERVO1_PIN         -1
40
+
41
+//
42
+// Limit Switches
43
+//
44
+#define X_STOP_PIN         PB12
45
+#define Y_STOP_PIN         PB13
46
+#define Z_STOP_PIN         PB14
47
+
48
+//
49
+// Filament runout
50
+//
51
+#define FIL_RUNOUT_PIN     PE1
52
+
53
+//
54
+// Z Probe (when not Z_MIN_PIN)
55
+//
56
+//#ifndef Z_MIN_PROBE_PIN
57
+//  #define Z_MIN_PROBE_PIN  PB15
58
+//#endif
59
+
60
+//
61
+// Steppers
62
+//
63
+#define X_STEP_PIN         PB10
64
+#define X_DIR_PIN          PB2
65
+#define X_ENABLE_PIN       PB11
66
+//#ifndef X_CS_PIN
67
+//  #define X_CS_PIN       PD1
68
+//#endif
69
+
70
+#define Y_STEP_PIN         PB0
71
+#define Y_DIR_PIN          PC5
72
+#define Y_ENABLE_PIN       PB1
73
+//#ifndef Y_CS_PIN
74
+//  #define Y_CS_PIN       PE12
75
+//#endif
76
+
77
+#define Z_STEP_PIN         PA7
78
+#define Z_DIR_PIN          PA6
79
+#define Z_ENABLE_PIN       PC4
80
+//#ifndef Z_CS_PIN
81
+//  #define Z_CS_PIN       PD5
82
+//#endif
83
+
84
+#define E0_STEP_PIN        PA4
85
+#define E0_DIR_PIN         PA3
86
+#define E0_ENABLE_PIN      PA5
87
+//#ifndef E0_CS_PIN
88
+//  #define E0_CS_PIN      PB4
89
+//#endif
90
+
91
+#define E1_STEP_PIN        -1
92
+#define E1_DIR_PIN         -1
93
+#define E1_ENABLE_PIN      -1
94
+//#ifndef E1_CS_PIN
95
+//  #define E1_CS_PIN      PE5
96
+//#endif
97
+
98
+//
99
+// Temperature Sensors
100
+//
101
+#define TEMP_0_PIN         PC0   // Analog Input
102
+#define TEMP_1_PIN         -1    // Analog Input
103
+#define TEMP_BED_PIN       PC1   // Analog Input
104
+
105
+//
106
+// Heaters / Fans
107
+//
108
+#define HEATER_0_PIN       PA1
109
+#define HEATER_1_PIN       -1
110
+#define HEATER_BED_PIN     PA2
111
+
112
+#ifndef FAN_PIN
113
+//  #define FAN_PIN        PC15
114
+#endif
115
+#define FAN1_PIN           PC15
116
+#define FAN2_PIN           PA0
117
+
118
+#define ORIG_E0_AUTO_FAN_PIN PC15   // Use this by NOT overriding E0_AUTO_FAN_PIN
119
+
120
+//
121
+// Prusa i3 MK2 Multi Material Multiplexer Support
122
+//
123
+//#define E_MUX0_PIN       -1
124
+//#define E_MUX1_PIN       -1
125
+
126
+//
127
+// LED / Lighting
128
+//
129
+//#define CASE_LIGHT_PIN_CI -1
130
+//#define CASE_LIGHT_PIN_DO -1
131
+//#define NEOPIXEL_PIN     -1
132
+
133
+//
134
+// Misc. Functions
135
+//
136
+#define SDSS               PC11
137
+#define LED_PIN            PC7   // Alive
138
+#define PS_ON_PIN          -1
139
+#define KILL_PIN           -1
140
+#define POWER_LOSS_PIN     -1    // Power-loss / nAC_FAULT
141
+
142
+#define SCK_PIN            PC12
143
+#define MISO_PIN           PC8
144
+#define MOSI_PIN           PD2
145
+#define SS_PIN             PC11
146
+
147
+//
148
+// SD support
149
+//
150
+#define SDIO_SUPPORT
151
+
152
+//
153
+// LCD / Controller
154
+//
155
+
156
+// The LCD is initialized in FSMC mode
157
+#define SD_DETECT_PIN      -1
158
+#define BEEPER_PIN         PD12
159
+
160
+#define BTN_EN1            PE3
161
+#define BTN_EN2            PE4
162
+#define BTN_ENC            PE2
163
+
164
+#define LCD_RESET_PIN      PD6
165
+#define LCD_BACKLIGHT_PIN  PD3
166
+#define FSMC_CS_PIN        PD4
167
+#define FSMC_RS_PIN        PD11
168
+#define TOUCH_CS           PB6
169
+
170
+//
171
+// ST7920 Delays
172
+//
173
+#ifndef ST7920_DELAY_1
174
+  #define ST7920_DELAY_1 DELAY_NS(96)
175
+#endif
176
+#ifndef ST7920_DELAY_2
177
+  #define ST7920_DELAY_2 DELAY_NS(48)
178
+#endif
179
+#ifndef ST7920_DELAY_3
180
+  #define ST7920_DELAY_3 DELAY_NS(715)
181
+#endif

Loading…
Cancel
Save