public void i2c_write(short address, byte[] data) throws IOException {
      if (data.length==0) {
        throw new IOException("no data");
      }
      if (data.length==1) {
        this.write_single(address, data[0]);
      } else {
        this.write_multiple(address, data);
      }
    }