|
@@ -28,7 +28,14 @@
|
28
|
28
|
#define BOARD_INFO_NAME "Lerdge K"
|
29
|
29
|
#define DEFAULT_MACHINE_NAME "LERDGE"
|
30
|
30
|
|
31
|
|
-#define I2C_EEPROM
|
|
31
|
+// EEPROM
|
|
32
|
+#if NO_EEPROM_SELECTED
|
|
33
|
+ #define I2C_EEPROM
|
|
34
|
+ #define SOFT_I2C_EEPROM // Force the use of Software I2C
|
|
35
|
+ #define I2C_SCL_PIN PG14
|
|
36
|
+ #define I2C_SDA_PIN PG13
|
|
37
|
+ #define MARLIN_EEPROM_SIZE 0x10000
|
|
38
|
+#endif
|
32
|
39
|
|
33
|
40
|
// USB Flash Drive support
|
34
|
41
|
#define HAS_OTG_USB_HOST_SUPPORT
|
|
@@ -36,7 +43,7 @@
|
36
|
43
|
//
|
37
|
44
|
// Servos
|
38
|
45
|
//
|
39
|
|
-//#define SERVO0_PIN PB11
|
|
46
|
+#define SERVO0_PIN PB11
|
40
|
47
|
|
41
|
48
|
//
|
42
|
49
|
// Limit Switches
|
|
@@ -96,6 +103,13 @@
|
96
|
103
|
// #define E1_CS_PIN PE4
|
97
|
104
|
//#endif
|
98
|
105
|
|
|
106
|
+//#define E2_STEP_PIN PF4 // best guess
|
|
107
|
+//#define E2_DIR_PIN PF3 // best guess
|
|
108
|
+//#define E2_ENABLE_PIN PF5 // best guess
|
|
109
|
+//#ifndef E2_CS_PIN
|
|
110
|
+// #define E2_CS_PIN PB2 // best guess
|
|
111
|
+//#endif
|
|
112
|
+
|
99
|
113
|
#if HAS_TMC_UART
|
100
|
114
|
/**
|
101
|
115
|
* TMC2208/TMC2209 stepper drivers
|
|
@@ -163,13 +177,19 @@
|
163
|
177
|
#ifndef FAN_PIN
|
164
|
178
|
#define FAN_PIN PF7
|
165
|
179
|
#endif
|
|
180
|
+
|
166
|
181
|
#define FAN1_PIN PF6
|
167
|
|
-#define FAN2_PIN PF8
|
168
|
182
|
|
169
|
183
|
#ifndef E0_AUTO_FAN_PIN
|
170
|
|
- #define E0_AUTO_FAN_PIN PF6
|
|
184
|
+ #define E0_AUTO_FAN_PIN PB1
|
|
185
|
+#endif
|
|
186
|
+
|
|
187
|
+#ifndef E1_AUTO_FAN_PIN
|
|
188
|
+ #define E1_AUTO_FAN_PIN PB0
|
171
|
189
|
#endif
|
172
|
190
|
|
|
191
|
+#define CONTROLLER_FAN_PIN PF8
|
|
192
|
+
|
173
|
193
|
//
|
174
|
194
|
// LED / Lighting
|
175
|
195
|
//
|
|
@@ -177,10 +197,10 @@
|
177
|
197
|
//#define CASE_LIGHT_PIN_DO -1
|
178
|
198
|
//#define NEOPIXEL_PIN -1
|
179
|
199
|
#ifndef RGB_LED_R_PIN
|
180
|
|
- #define RGB_LED_R_PIN PB7
|
|
200
|
+ #define RGB_LED_R_PIN PB8 // swap R and G pin for compatibility with real wires
|
181
|
201
|
#endif
|
182
|
202
|
#ifndef RGB_LED_G_PIN
|
183
|
|
- #define RGB_LED_G_PIN PB8
|
|
203
|
+ #define RGB_LED_G_PIN PB7
|
184
|
204
|
#endif
|
185
|
205
|
#ifndef RGB_LED_B_PIN
|
186
|
206
|
#define RGB_LED_B_PIN PB9
|
|
@@ -197,7 +217,7 @@
|
197
|
217
|
//
|
198
|
218
|
#define SDSS PC11
|
199
|
219
|
#define LED_PIN PA15 // Alive
|
200
|
|
-#define PS_ON_PIN -1
|
|
220
|
+#define PS_ON_PIN PA4
|
201
|
221
|
#define KILL_PIN -1
|
202
|
222
|
#define POWER_LOSS_PIN PA4 // Power-loss / nAC_FAULT
|
203
|
223
|
|
|
@@ -213,17 +233,23 @@
|
213
|
233
|
// LCD / Controller
|
214
|
234
|
//
|
215
|
235
|
|
216
|
|
-#define TFT_RESET_PIN PD6
|
217
|
|
-#define TFT_BACKLIGHT_PIN PD3
|
|
236
|
+#if HAS_FSMC_TFT
|
|
237
|
+ //#define TFT_DRIVER LERDGE_ST7796
|
218
|
238
|
|
219
|
|
-#define TFT_CS_PIN PD7
|
220
|
|
-#define TFT_RS_PIN PD11
|
|
239
|
+ #define TFT_RESET_PIN PD6
|
|
240
|
+ #define TFT_BACKLIGHT_PIN PD3
|
221
|
241
|
|
222
|
|
-#define TOUCH_CS_PIN PG15
|
223
|
|
-#define TOUCH_SCK_PIN PB3
|
224
|
|
-#define TOUCH_MOSI_PIN PB5
|
225
|
|
-#define TOUCH_MISO_PIN PB4
|
|
242
|
+ #define TFT_CS_PIN PD7
|
|
243
|
+ #define TFT_RS_PIN PD11
|
226
|
244
|
|
227
|
|
-#define BTN_EN1 PG10
|
228
|
|
-#define BTN_EN2 PG11
|
229
|
|
-#define BTN_ENC PG9
|
|
245
|
+ #define TOUCH_CS_PIN PG15
|
|
246
|
+ #define TOUCH_SCK_PIN PB3
|
|
247
|
+ #define TOUCH_MOSI_PIN PB5
|
|
248
|
+ #define TOUCH_MISO_PIN PB4
|
|
249
|
+#endif
|
|
250
|
+
|
|
251
|
+#if IS_NEWPANEL
|
|
252
|
+ #define BTN_EN1 PG10
|
|
253
|
+ #define BTN_EN2 PG11
|
|
254
|
+ #define BTN_ENC PG9
|
|
255
|
+#endif
|