diff --git a/README.md b/README.md index 89588d0..9160450 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +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 diff --git a/beaglebone_pin_setup/beaglebone-pin-setup.service b/beaglebone_pin_setup/beaglebone-pin-setup.service new file mode 100644 index 0000000..5424643 --- /dev/null +++ b/beaglebone_pin_setup/beaglebone-pin-setup.service @@ -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 \ No newline at end of file diff --git a/beaglebone_pin_setup/pin_setup.sh b/beaglebone_pin_setup/pin_setup.sh new file mode 100644 index 0000000..ff8cb3a --- /dev/null +++ b/beaglebone_pin_setup/pin_setup.sh @@ -0,0 +1,7 @@ +#!/bin/sh -e + +config-pin P9_17 i2c +config-pin P9_18 i2c +config-pin P9_14 pwm + +exit 0