cmd_i2c.c: added i2c read to memory function