|
@@ -0,0 +1,112 @@
|
|
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
|
+/**
|
|
25
|
+ * Wanhao 0ne+ pin assignments
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+#ifndef __AVR_ATmega2560__
|
|
29
|
+ #error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
|
|
30
|
+#endif
|
|
31
|
+
|
|
32
|
+#define BOARD_NAME "Wanhao i3 Mini 0ne+"
|
|
33
|
+#define DEFAULT_MACHINE_NAME "i3 Mini"
|
|
34
|
+#define BOARD_WEBSITE_URL "https://tinyurl.com/yyxw7se7"
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// Limit Switches
|
|
38
|
+//
|
|
39
|
+#define X_STOP_PIN 19
|
|
40
|
+#define Y_STOP_PIN 18
|
|
41
|
+#define Z_STOP_PIN 38
|
|
42
|
+
|
|
43
|
+//
|
|
44
|
+// Z Probe (when not Z_MIN_PIN)
|
|
45
|
+//
|
|
46
|
+#ifndef Z_MIN_PROBE_PIN
|
|
47
|
+ #define Z_MIN_PROBE_PIN 38
|
|
48
|
+#endif
|
|
49
|
+
|
|
50
|
+//
|
|
51
|
+// Steppers
|
|
52
|
+//
|
|
53
|
+#define X_STEP_PIN 22
|
|
54
|
+#define X_DIR_PIN 23
|
|
55
|
+#define X_ENABLE_PIN 57
|
|
56
|
+
|
|
57
|
+#define Y_STEP_PIN 25
|
|
58
|
+#define Y_DIR_PIN 26
|
|
59
|
+#define Y_ENABLE_PIN 24
|
|
60
|
+
|
|
61
|
+#define Z_STEP_PIN 29
|
|
62
|
+#define Z_DIR_PIN 39
|
|
63
|
+#define Z_ENABLE_PIN 28
|
|
64
|
+
|
|
65
|
+#define E0_STEP_PIN 55
|
|
66
|
+#define E0_DIR_PIN 56
|
|
67
|
+#define E0_ENABLE_PIN 54
|
|
68
|
+
|
|
69
|
+//
|
|
70
|
+// Temperature Sensors
|
|
71
|
+//
|
|
72
|
+#define TEMP_0_PIN 13
|
|
73
|
+#define TEMP_BED_PIN 14
|
|
74
|
+
|
|
75
|
+//
|
|
76
|
+// Heaters / Fans
|
|
77
|
+//
|
|
78
|
+#define HEATER_0_PIN 4
|
|
79
|
+#define HEATER_BED_PIN 44
|
|
80
|
+#define FAN_PIN 12 // IO pin. Buffer needed
|
|
81
|
+
|
|
82
|
+//
|
|
83
|
+// SD Card
|
|
84
|
+//
|
|
85
|
+#define SD_DETECT_PIN -1
|
|
86
|
+#define SDPOWER -1
|
|
87
|
+#define SDSS 53
|
|
88
|
+
|
|
89
|
+//
|
|
90
|
+// Misc. Functions
|
|
91
|
+//
|
|
92
|
+#define BEEPER_PIN 37
|
|
93
|
+#define KILL_PIN 64
|
|
94
|
+
|
|
95
|
+//
|
|
96
|
+// LCD / Controller
|
|
97
|
+//
|
|
98
|
+
|
|
99
|
+#if HAS_SPI_LCD
|
|
100
|
+ #define DOGLCD_A0 40
|
|
101
|
+ #define DOGLCD_CS 41
|
|
102
|
+ #define LCD_BACKLIGHT_PIN 65 // Backlight LED on A11/D65
|
|
103
|
+ #define LCD_RESET_PIN 27
|
|
104
|
+
|
|
105
|
+ #define LCD_CONTRAST 255
|
|
106
|
+
|
|
107
|
+ #if ENABLED(NEWPANEL)
|
|
108
|
+ #define BTN_EN1 2
|
|
109
|
+ #define BTN_EN2 3
|
|
110
|
+ #define BTN_ENC 5
|
|
111
|
+ #endif
|
|
112
|
+#endif
|