Skip to content

Commit

Permalink
config-pin location has changed; provide path to script.
Browse files Browse the repository at this point in the history
The old 'config-pin' script is not compatible with the `config-pin`
binary found in newer installations. Until the *.pin files are adapted,
make sure to have the documentation point to the right place.
  • Loading branch information
hzeller committed Jul 10, 2022
1 parent be0c432 commit baacf80
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion hardware/BUMPS/bumps.pins
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Run with config-pin -f BUMPS.pins
# Run with /opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin -f bumps.pins
#
# Step signals.
P9.18 low # motor 1 (top left Pololu; BUMPS v0.1 label "Z")
P9.17 low # motor 2 (bottom left Pololu; BUMPS v0.1 label "E")
Expand Down
4 changes: 2 additions & 2 deletions hardware/Pockegotion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ will have a couple of opto-coupled inputs and PWM outputs.
Pins are defined with the universal overlay, so can be loaded with

```
config-pin -f pockegotion.pins
/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin -f pockegotion.pins
```

The 'cape' is pretty much experimental right now:
Expand All @@ -19,4 +19,4 @@ The 'cape' is pretty much experimental right now:


[Quadrigotion]: http://quadrigotion.org/
[G+post]: https://plus.google.com/u/0/+HennerZeller/posts/DC3vYcE9zw8
[G+post]: https://plus.google.com/u/0/+HennerZeller/posts/DC3vYcE9zw8
14 changes: 11 additions & 3 deletions hardware/VGEN5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@ To support the VGEN5 cape, BeagleG must be built using the correct hardware targ
make BEAGLEG_HARDWARE_TARGET=VGEN5
```

## The config-pin utility

There are two `config-pin` utilities in current installations.

* The shell script `/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin` is the tool we're using here.
* `/usr/bin/config-pin` seems to be the latest one which has slightly different options (and the script needs to be adapted).

## Overlay and I/O configuration

The config-pin utility can be used to load the overlay.
The config-pin utility can be used to load the overlay (might not be needed
anymore in recent installations, as it should be loaded by default)

```
# Load the cape-universal overlay
config-pin overlay cape-universal
/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin overlay cape-universal
```

At this point, the various devices are loaded and all the gpio have been
Expand All @@ -38,7 +46,7 @@ The pin configuration can also be setup from a file such as

```
# Configure the I/O pins
config-pin -f vgen5.pins
/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin -f vgen5.pins
```

## Machine control
Expand Down

0 comments on commit baacf80

Please sign in to comment.