this is a code that we use I2C with a memory, we write and read