Reply To: Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code

Home Forums RetroPie Project GPIO Adapter, ControlBlock etc. Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code Reply To: Simple 1 button GPIO on off switch: 1 switch, 2 wires, 10 lines of code

#122044
Profile photo of skizz
skizz
Participant

I’d like to confirm what spaceinvader is seeing.

My scripts are copies of kiwijam777’s

I’ve done sudo apt-get update and sudo apt-get install rpi.gpio

Output is still:

sh: echo: I/O error

Are we all using the RPi 2 B+ and the latest RetroPie (3.6)?

I can’t imagine earlier versions would cause issues in something basic as writing a script in nano.

Is it a privilege issue? Your previous code had mkdir scripts without sudo in front so I don’t know if that caused an issue (I’m not a Linux expert so forgive me if the questions seem dumb).

I’m still searching for the issue but I just wanted to let others know that it doesn’t work on my RPi 2 w/ RetroPie 3.6

On a side note: Where is rc.local? I’m just looking through the pi’s directories with FileZilla so is it under etc/initd/rc.local? Or somewhere else?

It seems

  • This reply was modified 1 year ago by Profile photo of skizz skizz.
  • This reply was modified 1 year ago by Profile photo of skizz skizz.

Skip to toolbar