In general, data transferred through I2C are bytes and thus should have type uint8_t, not char. Also convert uint8_t ptrs to void ptrs