Hey guys, I put this simple package together which allows you to turn on and off GPIOs from the command line as services. This can be used for all sorts of things.
Instructions:
1. Download this package http://xdaforums.com/attachment.php?attachmentid=1780219&stc=1&d=1362453406
2. unTar.Gz it to the root directory of your Raspberry Pi. There's 6 files which go into /etc/init.d. The files are InitGPIO, led0, led1, led2, led3, and led4. These services control GPIOs 0, 1, 4, 14, and 15. See the chart below for more information.
3. Connect LEDs with 100 ohm resistors to the corresponding GPIOs using an old IDE hard disk cable.
Use
Initialize the GPIOs first
Turn on LEDs with
Turn off LEDs with
Instructions:
1. Download this package http://xdaforums.com/attachment.php?attachmentid=1780219&stc=1&d=1362453406
2. unTar.Gz it to the root directory of your Raspberry Pi. There's 6 files which go into /etc/init.d. The files are InitGPIO, led0, led1, led2, led3, and led4. These services control GPIOs 0, 1, 4, 14, and 15. See the chart below for more information.
3. Connect LEDs with 100 ohm resistors to the corresponding GPIOs using an old IDE hard disk cable.
Use
Initialize the GPIOs first
Code:
service InitGPIO start
Code:
service led0 start
service led1 start
service led2 start
service led3 start
service led4 start
Turn off LEDs with
Code:
service led0 stop
service led1 stop
service led2 stop
service led3 stop
service led4 stop