Skip to content

Commit

Permalink
#60 checking in the pin config script
Browse files Browse the repository at this point in the history
  • Loading branch information
DarylDohner committed Jul 4, 2023
1 parent be8f540 commit 1af7669
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,7 @@ If you plan to install/use EosPayload via docker, you can ignore all the above s
2. Install Docker compose (Instructions [here](https://docs.docker.com/compose/install/))
3. Clone the repo: `git clone https://github.com/VIP-LES/EosPayload.git`
4. Run `docker compose up`
5. Everything should install and run automatically
5. Everything should install and run automatically

### Configuring BeagleBone Pins
If you need to change the default pin behavior, you can add `config-pin` commands to `beaglebone_pin_setup/pin_setup.sh`, which runs on startup
10 changes: 10 additions & 0 deletions beaglebone_pin_setup/beaglebone-pin-setup.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Based on https://www.bacpeters.com/2020/01/25/configuring-the-beaglebone-black-gpio-pins-permanently/
[Unit]
Description=Setup for BBB pins

[Service]
Type=simple
ExecStart=/bin/bash /home/debian/EosPayload/beaglebone_pin_setup/pin_setup.sh

[Install]
WantedBy=multi-user.target
7 changes: 7 additions & 0 deletions beaglebone_pin_setup/pin_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh -e

config-pin P9_17 i2c
config-pin P9_18 i2c
config-pin P9_14 pwm

exit 0

0 comments on commit 1af7669

Please sign in to comment.