Browse Source

Fix E4d@box pins, stepper i2s (#20055)

Mauro 4 years ago
parent
commit
0a64f197d9
No account linked to committer's email address
1 changed files with 23 additions and 6 deletions
  1. 23
    6
      Marlin/src/pins/esp32/pins_E4D.h

+ 23
- 6
Marlin/src/pins/esp32/pins_E4D.h View File

31
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
31
   #error "Oops! Select an ESP32 board in 'Tools > Board.'"
32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
32
 #elif EXTRUDERS > 1 || E_STEPPERS > 1
33
   #error "E4d@box only supports one E Stepper. Comment out this line to continue."
33
   #error "E4d@box only supports one E Stepper. Comment out this line to continue."
34
-#elif HOTENDS > 2
34
+#elif HOTENDS > 1
35
   #error "E4d@box currently supports only one hotend. Comment out this line to continue."
35
   #error "E4d@box currently supports only one hotend. Comment out this line to continue."
36
 #endif
36
 #endif
37
 
37
 
40
 #define DEFAULT_MACHINE_NAME  BOARD_INFO_NAME
40
 #define DEFAULT_MACHINE_NAME  BOARD_INFO_NAME
41
 
41
 
42
 //
42
 //
43
+// Disable I2S stepper stream
44
+//
45
+#undef I2S_STEPPER_STREAM
46
+
47
+//
48
+// Redefine I2S for ESP32
49
+//
50
+#undef I2S_WS
51
+#define I2S_WS                                23
52
+#undef I2S_BCK
53
+#define I2S_BCK                               22
54
+#undef I2S_DATA
55
+#define I2S_DATA                              21
56
+
57
+//
43
 // Limit Switches
58
 // Limit Switches
44
 //
59
 //
45
 #define X_STOP_PIN                            34
60
 #define X_STOP_PIN                            34
82
 #define FAN_PIN                                0
97
 #define FAN_PIN                                0
83
 #define HEATER_BED_PIN                        15
98
 #define HEATER_BED_PIN                        15
84
 
99
 
85
-// SPI
100
+//
101
+// MicroSD card on SPI
102
+//
103
+#define MOSI_PIN                              23
104
+#define MISO_PIN                              19
105
+#define SCK_PIN                               18
86
 #define SDSS                                   5
106
 #define SDSS                                   5
87
-#define I2S_STEPPER_STREAM
88
-#define I2S_WS                                23
89
-#define I2S_BCK                               22
90
-#define I2S_DATA                              21
107
+#define USES_SHARED_SPI                           // SPI is shared by SD card with TMC SPI drivers

Loading…
Cancel
Save