浏览代码

Support for Creality CR-10

Creality board is a Melzi / Sanguinololu variant, but using different pins for LCD control (and maybe other minor variations)
essgcee 7 年前
父节点
当前提交
61be28133d

+ 2
- 1
Marlin/boards.h 查看文件

@@ -54,9 +54,10 @@
54 54
 #define BOARD_SANGUINOLOLU_11   6    // Sanguinololu < 1.2
55 55
 #define BOARD_SANGUINOLOLU_12   62   // Sanguinololu 1.2 and above
56 56
 #define BOARD_MELZI             63   // Melzi
57
+#define BOARD_MELZI_MAKR3D      66   // Melzi with ATmega1284 (MaKr3d version)
58
+#define BOARD_MELZI_CREALITY    89   // Melzi Creality3D board (for CR-10 etc)
57 59
 #define BOARD_STB_11            64   // STB V1.1
58 60
 #define BOARD_AZTEEG_X1         65   // Azteeg X1
59
-#define BOARD_MELZI_MAKR3D      66   // Melzi with ATmega1284 (MaKr3d version)
60 61
 #define BOARD_AZTEEG_X3         67   // Azteeg X3
61 62
 #define BOARD_AZTEEG_X3_PRO     68   // Azteeg X3 Pro
62 63
 #define BOARD_ANET_10           69   // Anet 1.0 (Melzi clone)

+ 1642
- 0
Marlin/example_configurations/Creality/CR-10/Configuration.h
文件差异内容过多而无法显示
查看文件


+ 4
- 2
Marlin/pins.h 查看文件

@@ -97,12 +97,14 @@
97 97
   #include "pins_SANGUINOLOLU_12.h"
98 98
 #elif MB(MELZI)
99 99
   #include "pins_MELZI.h"
100
+#elif MB(MELZI_MAKR3D)
101
+  #include "pins_MELZI_MAKR3D.h"
102
+#elif MB(MELZI_CREALITY)
103
+  #include "pins_MELZI_CREALITY.h"
100 104
 #elif MB(STB_11)
101 105
   #include "pins_STB_11.h"
102 106
 #elif MB(AZTEEG_X1)
103 107
   #include "pins_AZTEEG_X1.h"
104
-#elif MB(MELZI_MAKR3D)
105
-  #include "pins_MELZI_MAKR3D.h"
106 108
 #elif MB(AZTEEG_X3)
107 109
   #include "pins_AZTEEG_X3.h"
108 110
 #elif MB(AZTEEG_X3_PRO)

+ 100
- 0
Marlin/pins_MELZI_CREALITY.h 查看文件

@@ -0,0 +1,100 @@
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
+ * Melzi (Creality) pin assignments
25
+ */
26
+
27
+#define BOARD_NAME "Melzi Creality"
28
+
29
+#ifdef __AVR_ATmega1284P__
30
+  #define LARGE_FLASH true
31
+#endif
32
+
33
+// For the stock CR-10 use the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
34
+//   option for the display in Configuration.h
35
+
36
+#define SANGUINOLOLU_V_1_2
37
+#include "pins_SANGUINOLOLU_11.h"
38
+
39
+#undef LCD_SDSS
40
+#undef LED_PIN
41
+
42
+#undef LCD_PINS_RS
43
+#undef LCD_PINS_ENABLE
44
+
45
+#define LCD_PINS_RS     28 // st9720 CS
46
+#define LCD_PINS_ENABLE 17 // st9720 DAT
47
+
48
+#undef LCD_PINS_D4
49
+#undef LCD_PINS_D5
50
+#undef LCD_PINS_D6
51
+#undef LCD_PINS_D7
52
+
53
+#define LCD_PINS_D4     30 // st9720 CLK
54
+
55
+/**
56
+  PIN:   0   Port: B0        E0_DIR_PIN                  protected
57
+  PIN:   1   Port: B1        E0_STEP_PIN                 protected
58
+  PIN:   2   Port: B2        Z_DIR_PIN                   protected
59
+  PIN:   3   Port: B3        Z_STEP_PIN                  protected
60
+  PIN:   4   Port: B4        AVR_SS_PIN                  protected
61
+  .                          FAN_PIN                     protected
62
+  .                          SS_PIN                      protected
63
+  PIN:   5   Port: B5        AVR_MOSI_PIN                Output = 1
64
+  .                          MOSI_PIN                    Output = 1
65
+  PIN:   6   Port: B6        AVR_MISO_PIN                Input  = 0    TIMER3A   PWM:     0    WGM: 1    COM3A: 0    CS: 3    TCCR3A: 1    TCCR3B: 3    TIMSK3: 0
66
+  .                          MISO_PIN                    Input  = 0
67
+  PIN:   7   Port: B7        AVR_SCK_PIN                 Output = 0    TIMER3B   PWM:     0    WGM: 1    COM3B: 0    CS: 3    TCCR3A: 1    TCCR3B: 3    TIMSK3: 0
68
+  .                          SCK_PIN                     Output = 0
69
+  PIN:   8   Port: D0        RXD                         Input  = 1
70
+  PIN:   9   Port: D1        TXD                         Input  = 0
71
+  PIN:  10   Port: D2        BTN_EN2                     Input  = 1
72
+  PIN:  11   Port: D3        BTN_EN1                     Input  = 1
73
+  PIN:  12   Port: D4        HEATER_BED_PIN              protected
74
+  PIN:  13   Port: D5        HEATER_0_PIN                protected
75
+  PIN:  14   Port: D6        E0_ENABLE_PIN               protected
76
+  .                          X_ENABLE_PIN                protected
77
+  .                          Y_ENABLE_PIN                protected
78
+  PIN:  15   Port: D7        X_STEP_PIN                  protected
79
+  PIN:  16   Port: C0        BTN_ENC                     Input  = 1
80
+  .                          SCL                         Input  = 1
81
+  PIN:  17   Port: C1        LCD_PINS_ENABLE             Output = 0
82
+  .                          SDA                         Output = 0
83
+  PIN:  18   Port: C2        X_MIN_PIN                   protected
84
+  .                          X_STOP_PIN                  protected
85
+  PIN:  19   Port: C3        Y_MIN_PIN                   protected
86
+  .                          Y_STOP_PIN                  protected
87
+  PIN:  20   Port: C4        Z_MIN_PIN                   protected
88
+  .                          Z_STOP_PIN                  protected
89
+  PIN:  21   Port: C5        X_DIR_PIN                   protected
90
+  PIN:  22   Port: C6        Y_STEP_PIN                  protected
91
+  PIN:  23   Port: C7        Y_DIR_PIN                   protected
92
+  PIN:  24   Port: A7        TEMP_0_PIN                  protected
93
+  PIN:  25   Port: A6        TEMP_BED_PIN                protected
94
+  PIN:  26   Port: A5        Z_ENABLE_PIN                protected
95
+  PIN:  27   Port: A4        BEEPER_PIN                  Output = 0
96
+  PIN:  28   Port: A3        LCD_PINS_RS                 Output = 0
97
+  PIN:  29   Port: A2        <unused/unknown>            Input  = 0
98
+  PIN:  30   Port: A1        LCD_PINS_D4                 Output = 1
99
+  PIN:  31   Port: A0        SDSS                        Output = 1
100
+*/

+ 1
- 1
Marlin/pins_SANGUINOLOLU_11.h 查看文件

@@ -59,7 +59,7 @@
59 59
   #define BOARD_NAME "Sanguinololu <1.2"
60 60
 #endif
61 61
 
62
-#define IS_MELZI (MB(MELZI) || MB(MELZI_MAKR3D))
62
+#define IS_MELZI (MB(MELZI) || MB(MELZI_MAKR3D) || MB(MELZI_CREALITY))
63 63
 
64 64
 //
65 65
 // Limit Switches

正在加载...
取消
保存