[NUCLEOs] enhance I2C API to make it work with EEPROM