GPIO-27 and shell programming [solved]
Posted: Sat Dec 05, 2015 1:08 pm
I have a need to use GPIO-27 in a shell script.
Does anybody know why specifically GPIO-27 is excluded?
The information below is from the wiki.
But why not GPIO-27???
http://elinux.org/RPi_GPIO_Code_Samples
Could this be a relic from the Rev 1 to Rev 2 change? If so, it's a bug that needs fixing.
Looking forward to hear!
paulv
Does anybody know why specifically GPIO-27 is excluded?
The information below is from the wiki.
But why not GPIO-27???
http://elinux.org/RPi_GPIO_Code_Samples
Code: Select all
#!/bin/sh
# GPIO numbers should be from this list
# 0, 1, 4, 7, 8, 9, 10, 11, 14, 15, 17, 18, 21, 22, 23, 24, 25
# Note that the GPIO numbers that you program here refer to the pins
# of the BCM2835 and *not* the numbers on the pin header.
# So, if you want to activate GPIO7 on the header you should be
# using GPIO4 in this script. Likewise if you want to activate GPIO0
# on the header you should be using GPIO17 here.Looking forward to hear!
paulv