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

This commit is contained in:
Mauro 2020-11-07 02:28:41 +01:00 committed by GitHub
parent af75e24c2e
commit 0a64f197d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@
#error "Oops! Select an ESP32 board in 'Tools > Board.'" #error "Oops! Select an ESP32 board in 'Tools > Board.'"
#elif EXTRUDERS > 1 || E_STEPPERS > 1 #elif EXTRUDERS > 1 || E_STEPPERS > 1
#error "E4d@box only supports one E Stepper. Comment out this line to continue." #error "E4d@box only supports one E Stepper. Comment out this line to continue."
#elif HOTENDS > 2 #elif HOTENDS > 1
#error "E4d@box currently supports only one hotend. Comment out this line to continue." #error "E4d@box currently supports only one hotend. Comment out this line to continue."
#endif #endif
@ -39,6 +39,21 @@
#define BOARD_WEBSITE_URL "github.com/Exilaus/E4d@box" #define BOARD_WEBSITE_URL "github.com/Exilaus/E4d@box"
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
//
// Disable I2S stepper stream
//
#undef I2S_STEPPER_STREAM
//
// Redefine I2S for ESP32
//
#undef I2S_WS
#define I2S_WS 23
#undef I2S_BCK
#define I2S_BCK 22
#undef I2S_DATA
#define I2S_DATA 21
// //
// Limit Switches // Limit Switches
// //
@ -82,9 +97,11 @@
#define FAN_PIN 0 #define FAN_PIN 0
#define HEATER_BED_PIN 15 #define HEATER_BED_PIN 15
// SPI //
// MicroSD card on SPI
//
#define MOSI_PIN 23
#define MISO_PIN 19
#define SCK_PIN 18
#define SDSS 5 #define SDSS 5
#define I2S_STEPPER_STREAM #define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
#define I2S_WS 23
#define I2S_BCK 22
#define I2S_DATA 21