Fix FLYF407ZG pins (#18865)
This commit is contained in:
		@@ -31,7 +31,26 @@
 | 
			
		||||
#define BOARD_WEBSITE_URL    "github.com/FLYmaker/FLYF407ZG"
 | 
			
		||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
 | 
			
		||||
 | 
			
		||||
#define MARLIN_EEPROM_SIZE 0x1000                 // 4KB
 | 
			
		||||
//
 | 
			
		||||
// EEPROM Emulation
 | 
			
		||||
//
 | 
			
		||||
#if NO_EEPROM_SELECTED
 | 
			
		||||
  #define FLASH_EEPROM_EMULATION
 | 
			
		||||
  //#define SRAM_EEPROM_EMULATION
 | 
			
		||||
  //#define I2C_EEPROM
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if ENABLED(FLASH_EEPROM_EMULATION)
 | 
			
		||||
  // Decrease delays and flash wear by spreading writes across
 | 
			
		||||
  // the 128kB sector allocated for EEPROM emulation.
 | 
			
		||||
  #define FLASH_EEPROM_LEVELING
 | 
			
		||||
#elif ENABLED(I2C_EEPROM)
 | 
			
		||||
  #define MARLIN_EEPROM_SIZE 0x2000               // 8KB
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef MARLIN_EEPROM_SIZE
 | 
			
		||||
  #define MARLIN_EEPROM_SIZE 0x1000               // 4KB
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
//
 | 
			
		||||
// Servos
 | 
			
		||||
@@ -139,14 +158,14 @@
 | 
			
		||||
#define HEATER_2_PIN                        PE6
 | 
			
		||||
#define HEATER_3_PIN                        PE5
 | 
			
		||||
#define HEATER_4_PIN                        PE4
 | 
			
		||||
#define HEATER_5_PIN                        PA2
 | 
			
		||||
#define HEATER_5_PIN                        PE3
 | 
			
		||||
#define HEATER_BED_PIN                      PE2
 | 
			
		||||
 | 
			
		||||
#ifndef FAN_PIN
 | 
			
		||||
  #define FAN_PIN                           PF8
 | 
			
		||||
#endif
 | 
			
		||||
#define FAN1_PIN                            PF9
 | 
			
		||||
#define FAN2_PIN                            PE3
 | 
			
		||||
#define FAN2_PIN                            PA2
 | 
			
		||||
#define FAN3_PIN                            PA1
 | 
			
		||||
#define FAN4_PIN                            PE13
 | 
			
		||||
#define FAN5_PIN                            PB11
 | 
			
		||||
@@ -168,8 +187,8 @@
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if SD_CONNECTION_IS(ONBOARD)
 | 
			
		||||
  #define SDIO_SUPPORT                            // Use SDIO for onboard SD
 | 
			
		||||
 | 
			
		||||
  #define SDIO_SUPPORT                            // Use SDIO for onboard SD
 | 
			
		||||
  #ifndef SDIO_SUPPORT
 | 
			
		||||
    #define SOFTWARE_SPI                          // Use soft SPI for onboard SD
 | 
			
		||||
    #define SDSS                     SDIO_D3_PIN
 | 
			
		||||
@@ -177,6 +196,15 @@
 | 
			
		||||
    #define MISO_PIN                 SDIO_D0_PIN
 | 
			
		||||
    #define MOSI_PIN                SDIO_CMD_PIN
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
#elif SD_CONNECTION_IS(LCD)
 | 
			
		||||
 | 
			
		||||
  #define SCK_PIN                           PB13
 | 
			
		||||
  #define MISO_PIN                          PB14
 | 
			
		||||
  #define MOSI_PIN                          PB15
 | 
			
		||||
  #define SDSS                              PF11
 | 
			
		||||
  #define SD_DETECT_PIN                     PB2
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
//
 | 
			
		||||
@@ -232,11 +260,7 @@
 | 
			
		||||
//
 | 
			
		||||
// LCD / Controller
 | 
			
		||||
//
 | 
			
		||||
#define SCK_PIN                             PB13
 | 
			
		||||
#define MISO_PIN                            PB14
 | 
			
		||||
#define MOSI_PIN                            PB15
 | 
			
		||||
#define SDSS                                PF11
 | 
			
		||||
#define SD_DETECT_PIN                       PB2
 | 
			
		||||
 | 
			
		||||
#define BEEPER_PIN                          PB10
 | 
			
		||||
#define LCD_PINS_RS                         PE12
 | 
			
		||||
#define LCD_PINS_ENABLE                     PE14
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user