On 01/23/2018 03:32 PM, Dennis Lee Bieber wrote:
> On Tue, 23 Jan 2018 20:50:46 +0000, RobH declaimed the
> following:
>
>> pi@raspberrypi:~ $ gpio -1 write 11 1
>> pi@raspberrypi:~ $ gpio -1 read 11
>> 0
>> pi@raspberrypi:~ $
>
> At this point I decree that chip GPIO to be totally gone... As a
> working system shows:
>
> pi@raspberrypi:~$ gpio -1 mode 11 out
> pi@raspberrypi:~$ gpio -1 read 11
> 0
> pi@raspberrypi:~$ gpio -1 write 11 1
> pi@raspberrypi:~$ gpio -1 read 11
> 1
> pi@raspberrypi:~$
>
> Time to check the other GPIO pins for internal functioning. Looking at
> the result of readall, those would be physical/header pins 7, 13, 15, 29,
> 31, 33, 35, 37, 12, 16, 18, 22, 32, 36, 38, 40. Find out if any GPIO are
> working for output. I don't know the internals of the SoC, but could see a
> case where all GPIOs could be killed by one overload, without killing the
> rest of the SoC.
>
> I don't do BASH shell scripts, or I'd provide one that encapsulates the
> above 5 commands with a parameter for the pin number to speed up the
> testing. In lieu, guess it would be [^] (cursor up) to recall each command
> for editing the pin number (which should be faster than retyping each from
> scratch).
>
Something like
#!/bin/bash
# test Raspberry Pi gpio pins
for pin in 7 13 15 29 31 33 35 37 12 16 18 22 32 36 38 40
do
gpio -1 mode $pin out
gpio -1 read $pin
gpio -1 write $pin 1
gpio -1 read $pin
done
save as testpins.bash and then
chmod +x testpins.bash
./testpins.bash
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|