You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the library is very similar to the excellent RPi.GPIO library used on the Raspberry Pi. Below are some examples.
41
41
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
+
42
64
### GPIO Setup
43
65
44
66
Import the library, and setup as GPIO.OUT or GPIO.IN::
0 commit comments