Re: clear_IRLP_GPIO


Ken Pokigo
 

Thank you so much Dave
Its extremely appreciated

73
Ken
KC2AYK

On Tuesday, January 7, 2020, 07:27:18 PM EST, David Cameron - IRLP <dcameron@...> wrote:


Attached:

#!/bin/bash

# In order: D0, D1, D2, D3, COS
INGPIO="4 25 9 24 10"
# In order: PTT, AUX1, AUX2, AUX3
OUTGPIO="17 18 22 23"

#Export all pins and set input/ouput
for i in ${INGPIO} ${OUTGPIO}; do
  if [ -d /sys/class/gpio/gpio${i} ] ; then
    echo "${i}" > /sys/class/gpio/unexport
    EXPORTS="${EXPORTS} ${i}"
  fi
done

if [ ! -z "${EXPORTS}" ] ; then
  echo "Clearing IRLP GPIO pins${EXPORTS}"
fi



On 2020-01-07 16:18, Ken Pokigo via Groups.Io wrote:
> I have a PI IRLP node and lost some files
>
> Does anyone one have the file 'clear_IRLP_GPIO' ?
> Its in the path    /home/irlp/custom
>
> Thanks
>
> Ken
> KC2AYK
>
>
> Links:
> ------
> [1] https://irlp.groups.io/g/IRLP/message/76579

> [2]
https://groups.io/mt/69517009/500965
> [3] https://irlp.groups.io/g/IRLP/post
> [4] https://irlp.groups.io/g/IRLP/editsub/500965
> [5] https://irlp.groups.io/g/IRLP/leave/defanged



Join IRLP@irlp.groups.io to automatically receive all group messages.