B32 Blog

2020-07-30

Pi arrived

My Raspberry Pi arrived. Though I cannot do much with it as I lack a breadboard, jumpers, ICs, blinkenlights. So time to set it up.

Not much more to do here without a breadboard. However I found some LEDs and resistors, and cables in my storage from a previous life. So time to play with GPIO. I used the command line gpio tool.

gpio mode 26 output
gpio blink 26

No effect.

It seems that my Pi, a Raspberry Pi 4 Model B Rev 1.2, is too new for Raspbian. I wanted to make an LED blink though the gpio shell command, no effect.

Then it gave me an error message:

$ gpio readall
Oops - unable to determine board type... model: 17
$ _

After some googling I found this discussion: http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/. Which suggested to update wiringpi, like:

cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb

Now it works, only that the gpio tools seems to use the BCM pin numbers instead of the Pi pin numbers. Sigh.

--
Gilbert Baumann