Hi,
Yes exactly, if you want GPIO 17 then it's pin 11 + one pin with GND.
In the tutorial you mentioned early in this thread, they used pins 5-6
because of choice of GPIO 3, hence the Python code provided:

Code:
--------------------
    
  GPIO.setmode(GPIO.BCM)
  GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)
  GPIO.wait_for_edge(3, GPIO.FALLING)
  
  subprocess.call(['shutdown', '-h', 'now'], shell=False)
  
--------------------

The script included in PiCorePlayer replaces that Python and in the
"Tweaks" you can select the type of button (active low or high) and the
GPIO pin. I can't see much risk in trying, worst case it won't work...
please let us know how it goes :)


------------------------------------------------------------------------
truscellino's Profile: http://forums.slimdevices.com/member.php?userid=69928
View this thread: http://forums.slimdevices.com/showthread.php?t=112136

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to