I started with master library and changing it with the PIC code as an example.
Don't do that. You can find a ready to use well documented master library here...http://pjrc.com/teensy/td_libs_OneWire.html
I just started coding similar project, just for fun
You have a perverse sense of "fun"!
Do you have any ideas for testing?
Work in very tiny increments. Create code that can reliably detect a Reset. Add code that reliably detects the Device Present pulse. Add code that reliably determines the end of the Reset. Et cetera.
(the goal is to send serial as slave to another arduino as a master). I can not seem to get the timing right though.
The slave timing is definitely tricky. I've identified three potential problems...
1. Interrupt latency.
2. Master variations.
3. Loose protocol.
I played with some iButtons and this is my first Arduino project besides lighting LEDs.
An eclectic set.
Thanks for doing this!
Don't thank me yet! At the rate I'm going we all may expire before I finish.
This is not very Arduino friendly but I suspect that it works well...http://old.nabble.com/1wire-slave-codebase-%28AVR%29-td28214218.htmlhttps://github.com/smurfix/owslave