if you specify spi display, then eeprom overwrite works
does not work only with i2c display, while reading works and overwriting is not.
Tell me where to look for an error in the firmware?
while using an alternative. I keep eeprom on SD
<blockquote class="Quote">
arduino due
ramps fd
i2c pin 20-21
my uiconfig.h
#define UI_DISPLAY_TYPE 5
// ST7920 with software SPI
//#define U8GLIB_ST7920
// SSD1306 with software SPI
//#define U8GLIB_SSD1306_SW_SPI
// SH1106 with software SPI
// U8GLIB_SH1106_SW_SPI
// SSD1306 over I2C using hardware I2C pins
// #define U8GLIB_MINI12864_2X_SW_SPI
#define U8GLIB_SSD1306_I2C
#define UI_HAS_BACK_KEY 0
/**
Uncomment this, if you have keys connected via i2c to a PCF8574 chip. */
//#define
UI_HAS_I2C_KEYS
void
uiInitKeys() {
#if
UI_HAS_KEYS!=0
UI_KEYS_INIT_CLICKENCODER_LOW(33,31); // click encoder on pins 47 and
45. Phase is connected with gnd for signals.</b>
//UI_KEYS_INIT_BUTTON_LOW(4); // push button,
connects gnd to pin
//UI_KEYS_INIT_BUTTON_LOW(5);
//UI_KEYS_INIT_BUTTON_LOW(6);
//UI_KEYS_INIT_BUTTON_LOW(11);
//UI_KEYS_INIT_BUTTON_LOW(42);
// UI_KEYS_INIT_CLICKENCODER_LOW(47,45); //
click encoder on pins 47 and 45. Phase is connected with gnd for signals.
UI_KEYS_INIT_BUTTON_LOW(35); // push button, connects gnd to pin
// UI_KEYS_INIT_MATRIX(32,47,45,43,41,39,37,35);
#endif
}
void
uiCheckKeys(uint16_t &action) {
#if
UI_HAS_KEYS!=0
//UI_KEYS_CLICKENCODER_LOW_REV(33,31); //
click encoder on pins 47 and 45. Phase is connected with gnd for signals.
//
UI_KEYS_BUTTON_LOW(4,UI_ACTION_OK); // push button, connects gnd to pin
//
UI_KEYS_BUTTON_LOW(5,UI_ACTION_NEXT); // push button, connects gnd to pin
//UI_KEYS_BUTTON_LOW(6,UI_ACTION_PREVIOUS); //
push button, connects gnd to pin
//UI_KEYS_BUTTON_LOW(11,UI_ACTION_BACK); //
push button, connects gnd to pin
//UI_KEYS_BUTTON_LOW(42,UI_ACTION_SD_PRINT );
// push button, connects gnd to pin
//UI_KEYS_CLICKENCODER_LOW_REV(47,45); //
click encoder on pins 47 and 45. Phase is connected with gnd for signals.
//UI_KEYS_BUTTON_LOW(43,UI_ACTION_OK); // push
button, connects gnd to pin
#endif<p class="post-text-align-left">