1-wire link fixed + custom pin info added

This commit is contained in:
RogueM 2017-01-08 13:17:33 +00:00
parent 88e4edd359
commit 30b965a792
6 changed files with 57 additions and 17 deletions

View File

@ -4,7 +4,7 @@ name: 1-WIRE
class: interface
type: pinout
description: Raspberry Pi One-Wire pins
url: https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/
url: https://www.kernel.org/doc/Documentation/w1/w1.generic
pin:
'bcm4':
name: Data
@ -17,13 +17,21 @@ To enable the one-wire interface you need to add the following line to /boot/con
dtoverlay=w1-gpio
```
Alternatively you can enable the one-wire interface on demand using:
or
```
dtoverlay=w1-gpio,gpiopin=x
```
if you would like to use a custom pin (default is BCM4, as illustrated in pinout herein).
Alternatively you can enable the one-wire interface on demand using raspi-config, or the following:
```
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:
once either of the steps above has been performed, you can list the devices your Raspberry Pi can probe via (by default) BCM4, like so:
```
ls /sys/bus/w1/devices/

View File

@ -4,7 +4,7 @@ name: 1-WIRE
class: interface
type: pinout
description: Raspberry Pi One-Wire pins
url: https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/
url: https://www.kernel.org/doc/Documentation/w1/w1.generic
pin:
'bcm4':
name: Data
@ -17,13 +17,21 @@ To enable the one-wire interface you need to add the following line to /boot/con
dtoverlay=w1-gpio
```
Alternatively you can enable the one-wire interface on demand using:
or
```
dtoverlay=w1-gpio,gpiopin=x
```
if you would like to use a custom pin (default is BCM4, as illustrated in pinout herein).
Alternatively you can enable the one-wire interface on demand using raspi-config, or the following:
```
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:
once either of the steps above has been performed, you can list the devices your Raspberry Pi can probe via (by default) BCM4, like so:
```
ls /sys/bus/w1/devices/

View File

@ -4,7 +4,7 @@ name: 1-WIRE
class: interface
type: pinout
description: Raspberry Pi One-Wire pins
url: https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/
url: https://www.kernel.org/doc/Documentation/w1/w1.generic
pin:
'bcm4':
name: Data
@ -23,7 +23,7 @@ También puedes habilitar la interfaz sobre la marcha, cuando sea necesario:
sudo modprobe w1-gpio
```
Tras realizar una de las dos acciones anteriores, puedes enumerar los dispositivos conectados al GPIO4 de tu Raspberry Pi (por defecto) con:
Tras realizar una de las dos acciones anteriores, puedes enumerar los dispositivos conectados al BCM4 de tu Raspberry Pi (por defecto) con:
```
ls /sys/bus/w1/devices/

View File

@ -4,7 +4,7 @@ name: 1-WIRE
class: interface
type: pinout
description: Raspberry Pi One-Wire pins
url: https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/
url: https://www.kernel.org/doc/Documentation/w1/w1.generic
pin:
'bcm4':
name: Data
@ -17,13 +17,21 @@ To enable the one-wire interface you need to add the following line to /boot/con
dtoverlay=w1-gpio
```
Alternatively you can enable the one-wire interface on demand using:
or
```
dtoverlay=w1-gpio,gpiopin=x
```
if you would like to use a custom pin (default is BCM4, as illustrated in pinout herein).
Alternatively you can enable the one-wire interface on demand using raspi-config, or the following:
```
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:
once either of the steps above has been performed, you can list the devices your Raspberry Pi can probe via (by default) BCM4, like so:
```
ls /sys/bus/w1/devices/

View File

@ -4,7 +4,7 @@ name: 1-WIRE
class: interface
type: pinout
description: Raspberry Pi One-Wire pins
url: https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/
url: https://www.kernel.org/doc/Documentation/w1/w1.generic
pin:
'bcm4':
name: Data
@ -17,13 +17,21 @@ To enable the one-wire interface you need to add the following line to /boot/con
dtoverlay=w1-gpio
```
Alternatively you can enable the one-wire interface on demand using:
or
```
dtoverlay=w1-gpio,gpiopin=x
```
if you would like to use a custom pin (default is BCM4, as illustrated in pinout herein).
Alternatively you can enable the one-wire interface on demand using raspi-config, or the following:
```
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:
once either of the steps above has been performed, you can list the devices your Raspberry Pi can probe via (by default) BCM4, like so:
```
ls /sys/bus/w1/devices/

View File

@ -4,7 +4,7 @@ name: 1-WIRE
class: interface
type: pinout
description: Raspberry Pi One-Wire pins
url: https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/
url: https://www.kernel.org/doc/Documentation/w1/w1.generic
pin:
'bcm4':
name: Data
@ -17,13 +17,21 @@ To enable the one-wire interface you need to add the following line to /boot/con
dtoverlay=w1-gpio
```
Alternatively you can enable the one-wire interface on demand using:
or
```
dtoverlay=w1-gpio,gpiopin=x
```
if you would like to use a custom pin (default is BCM4, as illustrated in pinout herein).
Alternatively you can enable the one-wire interface on demand using raspi-config, or the following:
```
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:
once either of the steps above has been performed, you can list the devices your Raspberry Pi can probe via (by default) BCM4, like so:
```
ls /sys/bus/w1/devices/