You can have a look at the following CY8CMBR3xxx Host APIs Demo Project.zip code example at https://www.cypress.com/documentation/application-notes/an90071-cy8cmbr3xxx-capsense-design-guide
In this project I2C protocol is used to configure CY8CMBR3xxx device using PSoC 4. You can use this project as a reference to use PSoC to communicate with the I2C EEPROM M24C02 you are using.
Apart from that we have the following PSoC 4 based code examples on I2C:
You can also refer to the other code examples available: https://www.cypress.com/documentation/code-examples/psoc-345-code-examples