[arm-allstar] Setting GPIOs to outputs at boot?

Mal - VK6MT vk6mt at hamradio.org.au
Fri Jul 28 08:49:58 EST 2017


Hi Doug

Excellent. All working!

Thanks

Mal

-----Original Message-----
From: arm-allstar [mailto:arm-allstar-bounces at hamvoip.org] On Behalf Of
"Doug Crompton via arm-allstar"
Sent: Friday, 28 July 2017 10:38 PM
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Doug Crompton <wa3dsp at gmail.com>
Subject: Re: [arm-allstar] Setting GPIOs to outputs at boot?

Mal,

  There is a GPIO howto on the hamvoip.org web page. If you write a script
to do what you want to do with the bits you can call that script in the
/etc/rc.local script. The rc.local script runs anything in it at boot. The
asterisk/allstar startup script rc.allstar  is in the rc.local script so
placement just before that would ensure the bits are set before allstar
starts if that is what you want.

Does that answer your question?


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Fri, Jul 28, 2017 at 7:38 AM, "Mal - VK6MT via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Hi
>
>
>
> I've followed the GPIO setup and all is working well.  Now what I 
> would like to do is set 4 GPIOs to outputs at boot, as I think a 
> couple that I'm using are inputs with pull up enabled.  It's not a 
> major problem but I would like to improve things a little.
>
>
>
> Any help would be appreciated.
>
>
>
> Thanks
>
>
>
> Mal
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
>
_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3 web page - http://hamvoip.org



More information about the arm-allstar mailing list