Datasheet
Running the Example Code
Download the example sketch from our Github repository (http://adafru.it/deQ):
Download
Download
Example Code
Example Code
http://adafru.it/deO
Wiring:
Connect a LED to IOA and IOB as follows:
Cathode (short leg) of LED connected to the GPIO pin.
Anode (long leg) of LED connected to one end of a resistor*.
Other end of the resistor connected to 5v.
* A 1K resistor is shown here as a 'safe' value. For maximum LED brightness, you can learn
how to calculate the optimum resistance in this guide: http://learn.adafruit.com/all-about-
leds (http://adafru.it/clH)
Compile and upload the example sketch and you should see both LEDs blinking: 1 second on
and 1 second off.
© Adafruit Industries http://learn.adafruit.com/adafruit-1-wire-gpio-breakout-ds2413 Page 14 of 19