Changing wiring_write_then_read function lenghts to uint16_t, allowing bigger transfers