Преглед изворни кода

✨ enwi ESPNP board support (#24029)

Moritz Wirger пре 2 година
родитељ
комит
3e1dd0d640
No account linked to committer's email address
3 измењених фајлова са 119 додато и 0 уклоњено
  1. 1
    0
      Marlin/src/core/boards.h
  2. 116
    0
      Marlin/src/pins/esp32/pins_ENWI_ESPNP.h
  3. 2
    0
      Marlin/src/pins/pins.h

+ 1
- 0
Marlin/src/core/boards.h Прегледај датотеку

@@ -441,6 +441,7 @@
441 441
 #define BOARD_PANDA_ZHU               6006  // Panda_ZHU
442 442
 #define BOARD_PANDA_M4                6007  // Panda_M4
443 443
 #define BOARD_MKS_TINYBEE             6008  // MKS TinyBee based on ESP32 (with I2S stepper stream)
444
+#define BOARD_ENWI_ESPNP              6009  // enwi ESPNP based on ESP32 (with I2S stepper stream)
444 445
 
445 446
 //
446 447
 // SAMD51 ARM Cortex M4

+ 116
- 0
Marlin/src/pins/esp32/pins_ENWI_ESPNP.h Прегледај датотеку

@@ -0,0 +1,116 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2022 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 <https://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+/**
25
+ * Espressif ESP32 (Tensilica Xtensa LX6) on ESPNP by enwi
26
+ * Website https://github.com/enwi/ESPNP
27
+ */
28
+
29
+#include "env_validate.h"
30
+
31
+#define BOARD_INFO_NAME      "ESPNP"
32
+#define DEFAULT_MACHINE_NAME "ESP Pick and Place"
33
+
34
+//
35
+// I2S (steppers & other output-only pins)
36
+//
37
+#define I2S_STEPPER_STREAM
38
+#define I2S_WS                                17
39
+#define I2S_BCK                               22
40
+#define I2S_DATA                              21
41
+
42
+//
43
+// Servos
44
+//
45
+#define SERVO0_PIN                            26
46
+#define SERVO1_PIN                            25
47
+
48
+//
49
+// Limit Switches
50
+//
51
+#define X_STOP_PIN                            36
52
+#define Y_STOP_PIN                            39
53
+#define Z_STOP_PIN                            34
54
+#define I_STOP_PIN                            35
55
+#define J_STOP_PIN                            05
56
+#define K_STOP_PIN                            16
57
+
58
+//
59
+// Steppers
60
+//
61
+#define X_ENABLE_PIN                         136
62
+#define X_DIR_PIN                            137
63
+#define X_STEP_PIN                           138
64
+#define X_CS_PIN                             139
65
+
66
+#define Y_ENABLE_PIN                         140
67
+#define Y_DIR_PIN                            141
68
+#define Y_STEP_PIN                           142
69
+#define Y_CS_PIN                             143
70
+
71
+#define Z_ENABLE_PIN                         144
72
+#define Z_DIR_PIN                            145
73
+#define Z_STEP_PIN                           146
74
+#define Z_CS_PIN                             147
75
+
76
+#define I_ENABLE_PIN                         148
77
+#define I_DIR_PIN                            149
78
+#define I_STEP_PIN                           150
79
+#define I_CS_PIN                             151
80
+
81
+#define J_ENABLE_PIN                         152
82
+#define J_DIR_PIN                            153
83
+#define J_STEP_PIN                           154
84
+#define J_CS_PIN                             155
85
+
86
+#define K_ENABLE_PIN                         156
87
+#define K_DIR_PIN                            157
88
+#define K_STEP_PIN                           158
89
+#define K_CS_PIN                             159
90
+
91
+// Reduce baud rate to improve software serial reliability
92
+#define TMC_BAUD_RATE                      19200
93
+
94
+//
95
+// Temperature Sensors
96
+//
97
+//#define TEMP_0_PIN                          36  // Analog Input
98
+//#define TEMP_BED_PIN                        39  // Analog Input
99
+
100
+// General use mosfets, useful for things like pumps and solenoids
101
+// Shift register pins 128, 129, 130 and 131 are broken out and can be used
102
+#define FAN_PIN                              132
103
+#define FAN1_PIN                             134
104
+#define FAN2_PIN                             135
105
+#define FAN3_PIN                             136
106
+
107
+// #define FAN_SOFT_PWM_REQUIRED // check if needed
108
+
109
+// Neopixel Rings
110
+#define NEOPIXEL_PIN                          14
111
+#define NEOPIXEL2_PIN                         27
112
+
113
+// SPI
114
+#define MISO_PIN                              19
115
+#define MOSI_PIN                              23
116
+#define SCK_PIN                               18

+ 2
- 0
Marlin/src/pins/pins.h Прегледај датотеку

@@ -731,6 +731,8 @@
731 731
   #include "esp32/pins_PANDA_M4.h"              // ESP32                                  env:PANDA
732 732
 #elif MB(MKS_TINYBEE)
733 733
   #include "esp32/pins_MKS_TINYBEE.h"           // ESP32                                  env:mks_tinybee
734
+#elif MB(ENWI_ESPNP)
735
+  #include "esp32/pins_ENWI_ESPNP.h"            // ESP32                                  env:esp32
734 736
 
735 737
 //
736 738
 // Adafruit Grand Central M4 (SAMD51 ARM Cortex-M4)

Loading…
Откажи
Сачувај