Skip to content

Commit 700434f

Browse files
committed
add config-pin example to README
1 parent 0f261b6 commit 700434f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ 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+
### config-pin
43+
44+
[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).
45+
46+
```
47+
debian@beaglebone:~$ config-pin -q P9_14
48+
P9_14 Mode: pwm
49+
50+
debian@beaglebone:~$ config-pin -l P9_14
51+
default gpio gpio_pu gpio_pd pwm
52+
53+
debian@beaglebone:~$ config-pin P9_14 gpio
54+
55+
debian@beaglebone:~$ config-pin -q P9_14
56+
P9_14 Mode: gpio Direction: in Value: 0
57+
58+
debian@beaglebone:~$ config-pin P9_14 pwm
59+
60+
debian@beaglebone:~$ config-pin -q P9_14
61+
P9_14 Mode: pwm
62+
```
63+
4264
### GPIO Setup
4365

4466
Import the library, and setup as GPIO.OUT or GPIO.IN::

0 commit comments

Comments
 (0)