Permit SD EEPROM emulation on E3V2 (#20353)
This commit is contained in:
parent
1c695e130e
commit
07954edadc
@ -216,7 +216,7 @@ void HMI_SetLanguageCache() {
|
||||
}
|
||||
|
||||
void HMI_SetLanguage() {
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
#if BOTH(EEPROM_SETTINGS, IIC_BL24CXX_EEPROM)
|
||||
BL24CXX::read(DWIN_LANGUAGE_EEPROM_ADDRESS, (uint8_t*)&HMI_flag.language, sizeof(HMI_flag.language));
|
||||
#endif
|
||||
HMI_SetLanguageCache();
|
||||
@ -225,7 +225,7 @@ void HMI_SetLanguage() {
|
||||
void HMI_ToggleLanguage() {
|
||||
HMI_flag.language = HMI_IsChinese() ? DWIN_ENGLISH : DWIN_CHINESE;
|
||||
HMI_SetLanguageCache();
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
#if BOTH(EEPROM_SETTINGS, IIC_BL24CXX_EEPROM)
|
||||
BL24CXX::write(DWIN_LANGUAGE_EEPROM_ADDRESS, (uint8_t*)&HMI_flag.language, sizeof(HMI_flag.language));
|
||||
#endif
|
||||
}
|
||||
|
@ -43,30 +43,16 @@
|
||||
// EEPROM
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
// FLASH
|
||||
//#define FLASH_EEPROM_EMULATION
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#endif
|
||||
|
||||
// I2C
|
||||
#define IIC_BL24CXX_EEPROM // EEPROM on I2C-0 used only for display settings
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA11
|
||||
#define IIC_EEPROM_SCL PA12
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#else
|
||||
#define SDCARD_EEPROM_EMULATION // SD EEPROM until all EEPROM is BL24CXX
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
// SPI
|
||||
//#define SPI_EEPROM // EEPROM on SPI-0
|
||||
//#define SPI_CHAN_EEPROM1 ?
|
||||
//#define SPI_EEPROM1_CS ?
|
||||
|
||||
// 2K EEPROM
|
||||
//#define SPI_EEPROM2_CS ?
|
||||
|
||||
// 32Mb FLASH
|
||||
//#define SPI_FLASH_CS ?
|
||||
#if ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PA11
|
||||
#define IIC_EEPROM_SCL PA12
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb (24C16)
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -15,6 +15,7 @@ exec_test $1 $2 "Ender 3 v2" "$3"
|
||||
|
||||
use_example_configs "Creality/Ender-3 V2"
|
||||
opt_disable CLASSIC_JERK
|
||||
exec_test $1 $2 "Ender 3 v2 w/o CLASSIC_JERK" "$3"
|
||||
opt_add SDCARD_EEPROM_EMULATION
|
||||
exec_test $1 $2 "Ender 3 v2, SD EEPROM, w/o CLASSIC_JERK" "$3"
|
||||
|
||||
restore_configs
|
||||
|
Loading…
Reference in New Issue
Block a user