I'm spending some time on these 1-wire devices... so far I managed to get the DS18B20 working, which is pretty easy since there's code in the Playground.
But unfortunately there is (or i didn't find) any documentation of the 1-wire library.
I'm trying to use the DS2406 switch, it's detected but can't get it turn off/on.
This is the datasheet http://pdfserv.maxim-ic.com/en/ds/DS2406.pdf
Based on what I read here http://support.embeddeddatasystems.com/archives/6#more-6
to turn off or on the PIOA I have to write to bit 5 of location memory 07 through the Write Status (55h) command.
How can I do this using the 1-wire library?
EDIT: I saw select subroutine in OneWire.cpp performs a Write Status(55h) then select the address.
But I don't know in which format I have to pass the address 7.
I do these commands:
7 is the memory location in Status memory map, 20 is the hexadecimal value to turn bit 5 on (PIO-A channel flip-flop)
PLEASE HELP... THERE'S NO DOCUMENTATION IN THE WHOLE INTERNET