i'm setting 2 channel relay using gpio pins 5 , 6. have working python program turns pins on , off , controlling relay.
in reading web gpio settings, have discovered pin settings @ "time zero", ie boot up, not same , vary between versions of raspbian/linux.
found code set pins @ boot up. needs included in /etc/rc.local however, fails path gpio not correct. can provide me correct path gpio jessie running on raspberry pi v2? porting function raspberry pi b+ wheezy, know path os.
thanks.....rdk
in reading web gpio settings, have discovered pin settings @ "time zero", ie boot up, not same , vary between versions of raspbian/linux.
found code set pins @ boot up. needs included in /etc/rc.local
code: select all
/usr/local/bin/gpio write 5 1 /usr/local/bin/gpio mode 5 out
thanks.....rdk
linux case sensitive. gpio not same gpio.
locate executable can use command.
on jessie
$ gpio
/usr/local/bin/gpio
locate executable can use command.
on jessie
$ gpio
/usr/local/bin/gpio
raspberrypi
Comments
Post a Comment