This implements an i2c slave with a register map of 256 bytes in sram. The slave supports multi-byte writes and reads. It uses the "Wire" library.
Repository from Github https://github.comcharkster/samd21-i2c_slaveRepository from Github https://github.comcharkster/samd21-i2c_slave