From a698bfdc2abb69d191540a5cf8eddebed0da535c Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 4 Mar 2020 04:30:09 +0800 Subject: [PATCH] Update FYSETC S6 pins/variants (#17056) --- Marlin/src/pins/stm32/pins_FYSETC_S6.h | 4 ++++ buildroot/share/PlatformIO/variants/FYSETC_S6/variant.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/src/pins/stm32/pins_FYSETC_S6.h b/Marlin/src/pins/stm32/pins_FYSETC_S6.h index 16f176a376..5bda7b1c97 100644 --- a/Marlin/src/pins/stm32/pins_FYSETC_S6.h +++ b/Marlin/src/pins/stm32/pins_FYSETC_S6.h @@ -41,6 +41,9 @@ // EEPROM Emulation // #define FLASH_EEPROM_EMULATION +#if ENABLED(FLASH_EEPROM_EMULATION) + #define FLASH_EEPROM_LEVELING +#endif //#define SRAM_EEPROM_EMULATION //#define I2C_EEPROM #ifdef I2C_EEPROM @@ -65,6 +68,7 @@ // // Filament Sensor +// share with X_MAX_PIN // #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN PA1 diff --git a/buildroot/share/PlatformIO/variants/FYSETC_S6/variant.h b/buildroot/share/PlatformIO/variants/FYSETC_S6/variant.h index be04ef6b86..de34697fb3 100644 --- a/buildroot/share/PlatformIO/variants/FYSETC_S6/variant.h +++ b/buildroot/share/PlatformIO/variants/FYSETC_S6/variant.h @@ -115,7 +115,7 @@ extern "C" { #define NUM_ANALOG_FIRST 80 // PWM resolution -#define PWM_RESOLUTION 8 +#define PWM_RESOLUTION 12 #define PWM_FREQUENCY 20000 // >= 20 Khz => inaudible noise for fans #define PWM_MAX_DUTY_CYCLE 255