Przeglądaj źródła

Create and use pins_MELZI_MALYAN.h for Malyan M150

Scott Lahteine 7 lat temu
rodzic
commit
344ebc3bd2

+ 1
- 1
Marlin/src/config/examples/Malyan/M150/Configuration.h Wyświetl plik

133
 // The following define selects which electronics board you have.
133
 // The following define selects which electronics board you have.
134
 // Please choose the name from boards.h that matches your setup
134
 // Please choose the name from boards.h that matches your setup
135
 #ifndef MOTHERBOARD
135
 #ifndef MOTHERBOARD
136
-  #define MOTHERBOARD BOARD_MELZI
136
+  #define MOTHERBOARD BOARD_MELZI_MALYAN
137
 #endif
137
 #endif
138
 
138
 
139
 // Optional custom name for your RepStrap or other custom machine
139
 // Optional custom name for your RepStrap or other custom machine

+ 1
- 0
Marlin/src/core/boards.h Wyświetl plik

114
 #define BOARD_MELZI             63    // Melzi
114
 #define BOARD_MELZI             63    // Melzi
115
 #define BOARD_MELZI_MAKR3D      66    // Melzi with ATmega1284 (MaKr3d version)
115
 #define BOARD_MELZI_MAKR3D      66    // Melzi with ATmega1284 (MaKr3d version)
116
 #define BOARD_MELZI_CREALITY    89    // Melzi Creality3D board (for CR-10 etc)
116
 #define BOARD_MELZI_CREALITY    89    // Melzi Creality3D board (for CR-10 etc)
117
+#define BOARD_MELZI_MALYAN      92    // Melzi Malyan M150 board
117
 #define BOARD_STB_11            64    // STB V1.1
118
 #define BOARD_STB_11            64    // STB V1.1
118
 #define BOARD_AZTEEG_X1         65    // Azteeg X1
119
 #define BOARD_AZTEEG_X1         65    // Azteeg X1
119
 
120
 

+ 2
- 0
Marlin/src/pins/pins.h Wyświetl plik

193
   #include "pins_MELZI_MAKR3D.h"      // ATmega644P, ATmega1284P
193
   #include "pins_MELZI_MAKR3D.h"      // ATmega644P, ATmega1284P
194
 #elif MB(MELZI_CREALITY)
194
 #elif MB(MELZI_CREALITY)
195
   #include "pins_MELZI_CREALITY.h"    // ATmega644P, ATmega1284P
195
   #include "pins_MELZI_CREALITY.h"    // ATmega644P, ATmega1284P
196
+#elif MB(MELZI_MALYAN)
197
+  #include "pins_MELZI_MALYAN.h"      // ATmega644P, ATmega1284P
196
 #elif MB(STB_11)
198
 #elif MB(STB_11)
197
   #include "pins_STB_11.h"            // ATmega644P, ATmega1284P
199
   #include "pins_STB_11.h"            // ATmega644P, ATmega1284P
198
 #elif MB(AZTEEG_X1)
200
 #elif MB(AZTEEG_X1)

+ 50
- 0
Marlin/src/pins/pins_MELZI_MALYAN.h Wyświetl plik

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 (Malyan M150) pin assignments
25
+ */
26
+
27
+#define BOARD_NAME "Melzi (Malyan)"
28
+#define IS_MELZI
29
+
30
+#include "pins_SANGUINOLOLU_12.h"
31
+
32
+#undef LCD_SDSS
33
+#undef LCD_PINS_RS
34
+#undef LCD_PINS_ENABLE
35
+#undef LCD_PINS_D4
36
+#undef BTN_EN1
37
+#undef BTN_EN2
38
+#undef BTN_ENC
39
+
40
+#define LCD_PINS_RS     17 // st9720 CS
41
+#define LCD_PINS_ENABLE 16 // st9720 DAT
42
+#define LCD_PINS_D4     11 // st9720 CLK
43
+#define BTN_EN1         30
44
+#define BTN_EN2         29
45
+#define BTN_ENC         28
46
+
47
+// Alter timing for graphical display
48
+#define ST7920_DELAY_1 DELAY_2_NOP
49
+#define ST7920_DELAY_2 DELAY_2_NOP
50
+#define ST7920_DELAY_3 DELAY_2_NOP

Ładowanie…
Anuluj
Zapisz