From 39c293785017e4d7063a42329b73a1bb53afc989 Mon Sep 17 00:00:00 2001 From: RogueM Date: Wed, 27 Jul 2016 18:48:33 +0100 Subject: [PATCH] 1-wire iface draft --- draft/overlay/iface-1wire.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 draft/overlay/iface-1wire.md diff --git a/draft/overlay/iface-1wire.md b/draft/overlay/iface-1wire.md new file mode 100644 index 0000000..20a6437 --- /dev/null +++ b/draft/overlay/iface-1wire.md @@ -0,0 +1,30 @@ + +# W1-GPIO - One-Wire Interface + +To enable the one-wire interface you need to add the following line to /boot/config.txt, beofre rebooting your Pi: + +``` +dtoverlay=w1-gpio +``` + +Alternatively you can enable the one-wire interface on demand using: + +``` +sudo modprobe w1-gpio +``` + +once either of the steps above has been performed, you can list the devices your Raspberry Pi can probe via (by default) GPIO4, like so: + +``` +ls /sys/bus/w1/devices/ +```