Skip to content

Commit

Permalink
Fix FLYF407ZG pins (MarlinFirmware#18865)
Browse files Browse the repository at this point in the history
  • Loading branch information
FLYmaker authored and thinkyhead committed Apr 29, 2021
1 parent e6c9576 commit 0e2013d
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 400 deletions.
42 changes: 33 additions & 9 deletions Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -168,15 +187,24 @@
#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
#define SCK_PIN SDIO_CK_PIN
#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

//
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 0e2013d

Please sign in to comment.