How to use 1-wire library with DS2406

I MADE IT WORKING!!!! WOHOOOOOOO!!!!
I had to spend two nights CAREFULLY reading the datasheet.

By default the PIO A is turned on. To turn it off, use this command sequence:

  ds.reset();
  ds.select(addr);
  ds.write(0x55);
  ds.write(0x07);
  ds.write(0);
  ds.write(0x3F);
  for ( i = 0; i < 6; i++) {
    data[i] = ds.read();
  }
  ds.write(0xFF);

To turn it on again, just reset it, or replace 3F with 1F