Skip to content

Commit 0e593a1

Browse files
authored
Clarify there is no 0 prefix for pin lables (#180)
Please note that there is no '0' prefix for the pin numbers. For example, pin 7 on header P8 is "P8_7"
1 parent 6c84b3b commit 0e593a1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ sudo pip install --upgrade Adafruit_BBIO
3939

4040
Using the library is very similar to the excellent RPi.GPIO library used on the Raspberry Pi. Below are some examples.
4141

42+
### Pin Numbers
43+
44+
Please note that there is no '0' prefix for the pin numbers. For example, pin 7 on header P8 is `P8_7`.
45+
46+
**Correct:**
47+
```
48+
GPIO.setup("P8_7", OUT )
49+
```
50+
51+
**INCORRECT:**
52+
```
53+
GPIO.setup("P8_07", OUT )
54+
```
55+
56+
Refer to `pins_t table[]` in [common.c](https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/common.c#L73) all the pin labels.
57+
4258
### config-pin
4359

4460
[config-pin](https://github.com/beagleboard/bb.org-overlays/tree/master/tools/beaglebone-universal-io) is now used on the official BeagleBoard.org Debian Jessie and Stretch images to control pin mode (e.g. pin mux).

0 commit comments

Comments
 (0)