On Tue, 23 Jan 2018 16:43:21 +0000, RobH declaimed the following:
If the sequence (below) always reports 0, then it would be safe to presume that the GPIO circuitry is blown (or there is confusion as to which pin is really being tested). I'm using the -1 option to specify the physical header pin
gpio -1 mode 11 in #header 11 jumpered to GND (header pin 9, as I recall, is a ground) gpio -1 read 11 #should be 0 #now jumper header 11 to 3.3V (header pin 1 or header pin 17) gpio -1 read 11 #should be 1 -- if it is still 0, dead GPIO circuit
#with nothing connected to header pin 11 gpio -1 mode 11 out gpio -1 write 11 0 gpio -1 read 11 #should be 0 gpio -1 write 11 1 gpio -1 read 11 #should be 1, if this is 0 a REALLY dead GPIO, as the internal latches can't hold an output value.