|
@@ -0,0 +1,90 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2019 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
|
+ * E4d@Box pin assignments
|
|
26
|
+ * E4d@Box is a small factor 3D printer control board based on the ESP32 microcontroller for Laser, CNC and 3d printers
|
|
27
|
+ * for more info check http://atbox.tech/ and join to Facebook page E4d@box.
|
|
28
|
+ */
|
|
29
|
+
|
|
30
|
+#ifndef ARDUINO_ARCH_ESP32
|
|
31
|
+ #error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
|
32
|
+#elif EXTRUDERS > 1 || E_STEPPERS > 1
|
|
33
|
+ #error "E4d@box only supports one E Stepper. Comment out this line to continue."
|
|
34
|
+#elif HOTENDS > 2
|
|
35
|
+ #error "E4d@box currently supports only one hotend. Comment out this line to continue."
|
|
36
|
+#endif
|
|
37
|
+
|
|
38
|
+#define BOARD_INFO_NAME "E4D@BOX"
|
|
39
|
+#define BOARD_WEBSITE_URL "github.com/Exilaus/E4d@box"
|
|
40
|
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
|
41
|
+
|
|
42
|
+//
|
|
43
|
+// Limit Switches
|
|
44
|
+//
|
|
45
|
+#define X_MIN_PIN 34
|
|
46
|
+#define Y_MIN_PIN 35
|
|
47
|
+#define Z_MIN_PIN 16 // 15
|
|
48
|
+
|
|
49
|
+//
|
|
50
|
+// Steppers
|
|
51
|
+//
|
|
52
|
+#define X_STEP_PIN 12 // 34//27
|
|
53
|
+#define X_DIR_PIN 13 // 35//26
|
|
54
|
+#define X_ENABLE_PIN 17 // 0//17//25 // used free pin
|
|
55
|
+//#define X_CS_PIN 0
|
|
56
|
+
|
|
57
|
+#define Y_STEP_PIN 32 // 33
|
|
58
|
+#define Y_DIR_PIN 33 // 32
|
|
59
|
+#define Y_ENABLE_PIN X_ENABLE_PIN
|
|
60
|
+//#define Y_CS_PIN 13
|
|
61
|
+
|
|
62
|
+#define Z_STEP_PIN 25 // 14
|
|
63
|
+#define Z_DIR_PIN 26 // 12
|
|
64
|
+#define Z_ENABLE_PIN X_ENABLE_PIN
|
|
65
|
+//#define Z_CS_PIN 5 // SS_PIN
|
|
66
|
+
|
|
67
|
+#define E0_STEP_PIN 27 // 16
|
|
68
|
+#define E0_DIR_PIN 14 // 17
|
|
69
|
+#define E0_ENABLE_PIN X_ENABLE_PIN
|
|
70
|
+//#define E0_CS_PIN 21
|
|
71
|
+
|
|
72
|
+//
|
|
73
|
+// Temperature Sensors
|
|
74
|
+//
|
|
75
|
+#define TEMP_0_PIN 36 // Analog Input
|
|
76
|
+#define TEMP_BED_PIN 39 // Analog Input
|
|
77
|
+
|
|
78
|
+//
|
|
79
|
+// Heaters / Fans
|
|
80
|
+//
|
|
81
|
+#define HEATER_0_PIN 2 // 4//2//(D8)
|
|
82
|
+#define FAN_PIN 0 // 2//15//13 (D9)
|
|
83
|
+#define HEATER_BED_PIN 15 // 15//0 //(D10)
|
|
84
|
+
|
|
85
|
+// SPI
|
|
86
|
+#define SDSS 5
|
|
87
|
+#define I2S_STEPPER_STREAM
|
|
88
|
+#define I2S_WS 23
|
|
89
|
+#define I2S_BCK 22
|
|
90
|
+#define I2S_DATA 21
|