Thanks for the reply, I too found that, now I am using MKS monster 8 v2 which has I2C port GIVEN AS ALTERNARE for emulate from SD card as iam using SD card for firmware can we configure those pins to read i2c from other device
.******************************************************Marlin firmware************************************************
// Use one of these or SDCard-based Emulation will be used
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
#define I2C_EEPROM // Need use jumpers set i2c for EEPROM
#define MARLIN_EEPROM_SIZE 0x1000 // 4K
//#define I2C_SCL_PIN PB8 // I2C_SCL and CAN_RX
//#define I2C_SDA_PIN PB9 // I2C_SDA and CAN_TX
***********************************************************************************
i am thinking like can we create custom Gcode (like m342) ,which when sent from slicer will read i2c data and send back.i2c values read. I am new to marlin so sorry if i am wrong about what i ask .