I'm using the RedBearLab nRF51822 (http://redbearlab.com/redbearlab-nrf51822/) board and want to use a DS1820 sensor.
The problem is, that OneWire does not support the mentioned board. I tried to figure out how to properly configure the PIN stuff. But not successful since I'm not familiar with the PIN setup and the board itself.
Since I'm no expert and pretty new to Arduino its hard to explain. The OneWire library implements the protocol, thanks to that no further implementation to be done (hopefully).
The problem is that this OneWire library needs the PINs setup correctly to work properly. This can be found in OneWire.h starting at line 53:
Where this code is platform specific and needs to be adapted for the RedBearLab board. The library offers an fallback mode (line 118 which seems not to be working (tried it with the temperature example, ds.search() does not complete!?)
So I need to setup the above code correctly, but I do not know how Implementing the protocol on my own seems to be reinventing the wheel (because of the existence of this library).
Hopefully I could explain my "problem" in more detail!
That means the library did not detect any 1-wire devices.
Have you connected some 1-wire devices, 4.7K pullup, etc.? If you read this, you know you should include a description of everything, including the wiring.