Jan 2, 2021

Problem with an old IoT (RaspberryPi)

One problem when we work on the old raspberry pi is, we can hardly remember all the pinouts on those old model. I've an old Raspberry Pi that is an old model B with 512mb. 

And I'm try to find the power and the ground pins. When I turn to Google, most of the GPIO pinout is either for RPi4 or Rpi3.

At last, I found a way to solve my problem. 
 
First, I install a python package python-gpiozero (or python3-gpiozero). 
 
$ sudo apt install python-gpiozero
 
Then I run the command "pinout", as below, and I found the right pins (4/6) for me. ;)