SKR Pro 1.1 WiFi and LCD SD card support (#17531)

This commit is contained in:
Bob Kuhn
2020-04-16 03:55:33 -05:00
committed by GitHub
parent d194688020
commit f5d809f366
7 changed files with 111 additions and 8 deletions

View File

@ -142,7 +142,11 @@
#define SDIO_CK_PIN PC12
#define SDIO_CMD_PIN PD2
#if !defined(SDCARD_CONNECTION) || SD_CONNECTION_IS(ONBOARD)
#ifndef SDCARD_CONNECTION
#define SDCARD_CONNECTION ONBOARD
#endif
#if SD_CONNECTION_IS(ONBOARD)
#define SDIO_SUPPORT // Use SDIO for onboard SD
#ifndef SDIO_SUPPORT

View File

@ -31,7 +31,7 @@
// Use one of these or SDCard-based Emulation will be used
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
//
// Servos
@ -215,7 +215,11 @@
#define HEATER_BED_PIN PD12 // Hotbed
#define FAN_PIN PC8 // Fan0
#define FAN1_PIN PE5 // Fan1
#define FAN2_PIN PE6 // Fan2
#define FAN2_PIN PE6
#ifndef E0_AUTO_FAN_PIN
#define E0_AUTO_FAN_PIN PC9
#endif
//
// Misc. Functions
@ -227,16 +231,14 @@
//
// Onboard SD card
// NOT compatible with LCD
// Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
//
#if SDCARD_CONNECTION == ONBOARD && !HAS_SPI_LCD
#if SD_CONNECTION_IS(ONBOARD)
#define SOFTWARE_SPI // Use soft SPI for onboard SD
#define SDSS PA4
#define SCK_PIN PA5
#define MISO_PIN PA6
#define MOSI_PIN PB5
#else
#define SDSS PB12
#endif
/**
@ -256,6 +258,9 @@
#if HAS_SPI_LCD
#define BEEPER_PIN PG4
#define BTN_ENC PA8
#if SD_CONNECTION_IS(LCD)
#define SDSS PB12 // Uses default hardware SPI for LCD's SD
#endif
#if ENABLED(CR10_STOCKDISPLAY)
#define LCD_PINS_RS PG6
@ -272,6 +277,10 @@
#undef ST7920_DELAY_2
#undef ST7920_DELAY_3
#elif ENABLED(MKS_MINI_12864)
#define DOGLCD_A0 PG6
#define DOGLCD_CS PG3
#else
#define LCD_PINS_RS PD10
@ -321,3 +330,21 @@
#endif
#endif // HAS_SPI_LCD
//
// WIFI
//
/**
* _____
* TX | 1 2 | GND Enable PG1 // Must be high for module to run
* Enable | 3 4 | GPIO2 Reset PG0 // Leave as unused (OK to leave floating)
* Reset | 5 6 | GPIO0 GPIO2 PF15 // Leave as unused (best to leave floating)
* 3.3V| 7 8 | RX GPIO0 PF14 // Leave as unused (best to leave floating)
*  ̄ ̄
* W1
*/
#define ESP_WIFI_MODULE_COM 6 // must also set SERIAL_PORT or SERIAL_PORT_2 to this
#define ESP_WIFI_MODULE_BAUDRATE BAUDRATE //115200 // use BAUDRATE ? would guarantee same baud rate as SERIAL_PORT & SERIAL_PORT_2
#define ESP_WIFI_MODULE_RESET_PIN -1
#define ESP_WIFI_MODULE_ENABLE_PIN PG1

View File

@ -164,7 +164,11 @@
#define SDIO_CK_PIN PC12
#define SDIO_CMD_PIN PD2
#if !defined(SDCARD_CONNECTION) || SD_CONNECTION_IS(ONBOARD)
#ifndef SDCARD_CONNECTION
#define SDCARD_CONNECTION ONBOARD
#endif
#if SD_CONNECTION_IS(ONBOARD)
#define SDIO_SUPPORT // Use SDIO for onboard SD
#ifndef SDIO_SUPPORT