Pin Numbering - Raspberry Pi Zero W
Numbering Scheme
Pi4J uses an abstract pin numbering scheme to help insulate software from hardware changes.
Pi4J implements the same pin number scheme as the Wiring Pi project. More information about the WiringPi pin number scheme can be found here: http://wiringpi.com/pins/
Pi4J provides a RaspiPin enumeration that is used to manage the accessible GPIO pins.
Expansion Header
The Raspberry Pi Zero W board contains a single 40-pin expansion header labeled as 'J8' providing access to 28 GPIO pins.
(Pins 1, 2, 39 & 40 are also labeled below.)
GPIO Pinout (40-pin J8 Header)
The diagram below illustrates the GPIO pinout using the Pi4J/WiringPi GPIO numbering scheme.
Additional Resources
- Please visit the usage page for additional details on how to control these pins using Pi4J.
- Click here for more information on the Raspberry Pi Zero W.
- Click here for more information the Raspberry Pi pin functions.