{"id":15197198,"url":"https://github.com/fdelporte/piheaders","last_synced_at":"2025-10-02T13:31:00.434Z","repository":{"id":57715124,"uuid":"219515538","full_name":"FDelporte/PiHeaders","owner":"FDelporte","description":"Java library with headers and pins of all Raspberry Pi boards","archived":true,"fork":false,"pushed_at":"2022-12-15T19:03:31.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-28T00:44:39.942Z","etag":null,"topics":["java","java-library","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FDelporte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"FDelporte"}},"created_at":"2019-11-04T14:04:36.000Z","updated_at":"2023-01-20T13:24:07.000Z","dependencies_parsed_at":"2023-01-29T04:16:01.570Z","dependency_job_id":null,"html_url":"https://github.com/FDelporte/PiHeaders","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDelporte%2FPiHeaders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDelporte%2FPiHeaders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDelporte%2FPiHeaders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FDelporte%2FPiHeaders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FDelporte","download_url":"https://codeload.github.com/FDelporte/PiHeaders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875700,"owners_count":16554702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-library","raspberry-pi"],"created_at":"2024-09-28T00:44:57.653Z","updated_at":"2025-10-02T13:31:00.141Z","avatar_url":"https://github.com/FDelporte.png","language":"Java","funding_links":["https://github.com/sponsors/FDelporte"],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi headerPins\n\nJava library with headerPins and pins of all Raspberry Pi boards\n\n\u003e **Warning**\n\u003e This project is no longer maintained. A newer and extended version is available in https://github.com/Pi4J/pi4j-board-info.\n\n## Info\n\n## Auto-generated info\n\n\n### Pi models\n\n| Name | Label | Description | \n| :--- | :--- | :--- | \n| MODEL_A | Model A | Without ethernet connector | \n| MODEL_B | Model B | With ethernet connector | \n| COMPUTE | Compute Module | Pi on a 200-pin DDR2-memory-like module for integration in embedded devices | \n| ZERO | Zero | Smaller size and reduced GPIO capabilities | \n\n\n### Pi board versions\n\n| Name | Label | Model | Header version | Release date | \n| :--- | :--- | :--- | :--- | :--- | \n| MODEL_1_A | Pi 1 Model A | MODEL_A | TYPE_1 | 2013-02 | \n| MODEL_1_A_PLUS | Pi 1 Model A+ | MODEL_A | TYPE_1 | 2014-11 | \n| MODEL_3_A_PLUS | Pi 3 Model A+ | MODEL_A | TYPE_3 | 2018-11 | \n| MODEL_1_B | Pi 1 Model B | MODEL_B | TYPE_1 | 2012-04 | \n| MODEL_1_B_PLUS | Pi 1 Model B+ | MODEL_B | TYPE_1 | 2014-07 | \n| MODEL_2_B | Pi 2 Model B | MODEL_B | TYPE_2 | 2015-02 | \n| MODEL_2_B_V2 | Pi 2 Model B V1.2 | MODEL_B | TYPE_2 | 2016-10 | \n| MODEL_3_B | Pi 3 Model B | MODEL_B | TYPE_3 | 2016-02 | \n| MODEL_3_B_PLUS | Pi 3 Model B+ | MODEL_B | TYPE_3 | 2018-03 | \n| MODEL_4_B | Pi 4 Model B | MODEL_B | TYPE_3 | 2019-06 | \n| COMPUTE_1 | Compute Module 1 | COMPUTE | COMPUTE | 2014-04 | \n| COMPUTE_3 | Compute Module 3 | COMPUTE | COMPUTE | 2017-01 | \n| COMPUTE_3_LITE | Compute Module 3 Lite | COMPUTE | COMPUTE | 2017-01 | \n| COMPUTE_3_PLUS | Compute Module 3+ | COMPUTE | COMPUTE | 2019-01 | \n| COMPUTE_3_PLUS_LITE | Compute Module 3+ Lite | COMPUTE | COMPUTE | 2019-01 | \n| ZERO_PCB_1_2 | Pi Zero PCB V1.2 | ZERO | TYPE_2 | 2015-11 | \n| ZERO_PCB_1_3 | Pi Zero PCB V1.3 | ZERO | TYPE_3 | 2016-05 | \n| ZERO_W | Pi Zero W | ZERO | TYPE_3 | 2017-02 | \n\n\n### Pin types\n\n| Name | Label | Color | \n| :--- | :--- | :--- | \n| POWER | Power | #990000 | \n| GROUND | Ground | #0 | \n| DIGITAL | Digital | #9900 | \n| DIGITAL_AND_PWM | Digital and PWM | #ff7ff00 | \n| DIGITAL_NO_PULL_DOWN | Digital without pulldown | #800080 | \n\n\n### Pin functions\n\n| Name | Label | Description | \n| :--- | :--- | :--- | \n| UART | Universal Asynchronous Receiver and Transmitter | Asynchronous serial communication protocol | \n| GPCLK | General Purpose Clock | Output a fixed frequency | \n| I2C | Inter Integrated Circuit | Synchronous serial computer bus | \n| SPI | Serial Peripheral Interface | Four-wire serial bus | \n\n\n### Header versions\n\n| Name | Label | Description | Headers | \n| :--- | :--- | :--- | :--- | \n| TYPE_1 | Type 1 | Used on original Model B | 26pin header - type 1 | \n| TYPE_2 | Type 2 | Used on Model A and Model B (revision 2) | 26pin header - type 2 + 8pin header | \n| TYPE_3 | Type 3 | Used on Model A+, B+, Pi Zero, Pi Zero W, Pi2B, Pi3B, Pi4B | 40pin header | \n| COMPUTE | Compute Module | 54 GPIO | Compute J5 + Compute J6 | \n\n\n### Header types\n\n#### 8pin header\n\n| Pin n° | Type | Function | BCM n° | Wiring pi n° | Name | Remark | \n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | \n| 1 | POWER |  |  |  | 5.0 VDC |  | \n| 2 | POWER |  |  |  | 3.3 VDC |  | \n| 3 | DIGITAL |  | 28 | 17 |  |  | \n| 4 | DIGITAL |  | 29 | 18 |  |  | \n| 5 | DIGITAL |  | 30 | 19 |  |  | \n| 6 | DIGITAL |  | 31 | 20 |  |  | \n| 7 | GROUND |  |  |  | Ground |  | \n| 8 | GROUND |  |  |  | Ground |  | \n\n\n#### 26pin header - type 1\n\n| Pin n° | Type | Function | BCM n° | Wiring pi n° | Name | Remark | \n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | \n| 1 | POWER |  |  |  | 3.3 VDC |  | \n| 2 | POWER |  |  |  | 5.0 VDC |  | \n| 3 | DIGITAL_NO_PULL_DOWN | I2C | 0 | 8 | SDA1 (I2C) | SDA.1 pin has a physical pull-up resistor | \n| 4 | POWER |  |  |  | 5.0 VDC |  | \n| 5 | DIGITAL_NO_PULL_DOWN | I2C | 1 | 9 | SCL1 (I2C) | SCL.1 pin has a physical pull-up resistor | \n| 6 | GROUND |  |  |  | Ground |  | \n| 7 | DIGITAL | GPCLK | 4 | 7 | GPCLK0 |  | \n| 8 | DIGITAL | UART | 14 | 15 | UART TxD |  | \n| 9 | GROUND |  |  |  | Ground |  | \n| 10 | DIGITAL | UART | 15 | 16 | UART RxD |  | \n| 11 | DIGITAL | SPI | 17 | 0 |  |  | \n| 12 | DIGITAL_AND_PWM | SPI | 18 | 1 | PCM_CLK/PWM0 | Supports PWM0 [ALT5] | \n| 13 | DIGITAL |  | 21 | 2 |  |  | \n| 14 | GROUND |  |  |  | Ground |  | \n| 15 | DIGITAL |  | 22 | 3 |  |  | \n| 16 | DIGITAL |  | 23 | 4 |  |  | \n| 17 | POWER |  |  |  | 3.3 VDC |  | \n| 18 | DIGITAL |  | 24 | 5 |  |  | \n| 19 | DIGITAL | SPI | 10 | 12 | MOSI (SPI) |  | \n| 20 | GROUND |  |  |  | Ground |  | \n| 21 | DIGITAL | SPI | 9 | 13 | MISO (SPI) |  | \n| 22 | DIGITAL |  | 25 | 6 |  |  | \n| 23 | DIGITAL | SPI | 11 | 14 | SCLK (SPI) |  | \n| 24 | DIGITAL | SPI | 8 | 10 | CE0 (SPI) |  | \n| 25 | GROUND |  |  |  | Ground |  | \n| 26 | DIGITAL | SPI | 7 | 11 | CE1 (SPI) |  | \n\n\n#### 26pin header - type 2\n\n| Pin n° | Type | Function | BCM n° | Wiring pi n° | Name | Remark | \n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | \n| 1 | POWER |  |  |  | 3.3 VDC |  | \n| 2 | POWER |  |  |  | 5.0 VDC |  | \n| 3 | DIGITAL_NO_PULL_DOWN | I2C | 2 | 8 | SDA1 (I2C) | SDA.1 pin has a physical pull-up resistor | \n| 4 | POWER |  |  |  | 5.0 VDC |  | \n| 5 | DIGITAL_NO_PULL_DOWN | I2C | 3 | 9 | SCL1 (I2C) | SCL.1 pin has a physical pull-up resistor | \n| 6 | GROUND |  |  |  | Ground |  | \n| 7 | DIGITAL | GPCLK | 4 | 7 | GPCLK0 |  | \n| 8 | DIGITAL | UART | 14 | 15 | UART TxD |  | \n| 9 | GROUND |  |  |  | Ground |  | \n| 10 | DIGITAL | UART | 15 | 16 | UART RxD |  | \n| 11 | DIGITAL | SPI | 17 | 0 |  |  | \n| 12 | DIGITAL_AND_PWM | SPI | 18 | 1 | PCM_CLK/PWM0 | Supports PWM0 [ALT5] | \n| 13 | DIGITAL |  | 27 | 2 |  |  | \n| 14 | GROUND |  |  |  | Ground |  | \n| 15 | DIGITAL |  | 22 | 3 |  |  | \n| 16 | DIGITAL |  | 23 | 4 |  |  | \n| 17 | POWER |  |  |  | 3.3 VDC |  | \n| 18 | DIGITAL |  | 24 | 5 |  |  | \n| 19 | DIGITAL | SPI | 10 | 12 | MOSI (SPI) |  | \n| 20 | GROUND |  |  |  | Ground |  | \n| 21 | DIGITAL | SPI | 9 | 13 | MISO (SPI) |  | \n| 22 | DIGITAL |  | 25 | 6 |  |  | \n| 23 | DIGITAL | SPI | 11 | 14 | SCLK (SPI) |  | \n| 24 | DIGITAL | SPI | 8 | 10 | CE0 (SPI) |  | \n| 25 | GROUND |  |  |  | Ground |  | \n| 26 | DIGITAL | SPI | 7 | 11 | CE1 (SPI) |  | \n\n\n#### 40pin header\n\n| Pin n° | Type | Function | BCM n° | Wiring pi n° | Name | Remark | \n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | \n| 1 | POWER |  |  |  | 3.3 VDC |  | \n| 2 | POWER |  |  |  | 5.0 VDC |  | \n| 3 | DIGITAL_NO_PULL_DOWN | I2C | 2 | 8 | SDA1 (I2C) | SDA.1 pin has a physical pull-up resistor | \n| 4 | POWER |  |  |  | 5.0 VDC |  | \n| 5 | DIGITAL_NO_PULL_DOWN | I2C | 3 | 9 | SCL1 (I2C) | SCL.1 pin has a physical pull-up resistor | \n| 6 | GROUND |  |  |  | Ground |  | \n| 7 | DIGITAL | GPCLK | 4 | 7 | GPCLK0 |  | \n| 8 | DIGITAL | UART | 14 | 15 | UART TxD |  | \n| 9 | GROUND |  |  |  | Ground |  | \n| 10 | DIGITAL | UART | 15 | 16 | UART RxD |  | \n| 11 | DIGITAL | SPI | 17 | 0 |  |  | \n| 12 | DIGITAL_AND_PWM | SPI | 18 | 1 | PCM_CLK/PWM0 | Supports PWM0 [ALT5] | \n| 13 | DIGITAL |  | 27 | 2 |  |  | \n| 14 | GROUND |  |  |  | Ground |  | \n| 15 | DIGITAL |  | 22 | 3 |  |  | \n| 16 | DIGITAL |  | 23 | 4 |  |  | \n| 17 | POWER |  |  |  | 3.3 VDC |  | \n| 18 | DIGITAL |  | 24 | 5 |  |  | \n| 19 | DIGITAL | SPI | 10 | 12 | MOSI (SPI) |  | \n| 20 | GROUND |  |  |  | Ground |  | \n| 21 | DIGITAL | SPI | 9 | 13 | MISO (SPI) |  | \n| 22 | DIGITAL |  | 25 | 6 |  |  | \n| 23 | DIGITAL | SPI | 11 | 14 | SCLK (SPI) |  | \n| 24 | DIGITAL | SPI | 8 | 10 | CE0 (SPI) |  | \n| 25 | GROUND |  |  |  | Ground |  | \n| 26 | DIGITAL | SPI | 7 | 11 | CE1 (SPI) |  | \n| 27 | DIGITAL_NO_PULL_DOWN | I2C | 0 | 30 | SDA0 I2C ID EEPROM | SDA.0 pin has a physical pull-up resistor | \n| 28 | DIGITAL_NO_PULL_DOWN | I2C | 1 | 31 | SCL0 I2C ID EEPROM | SDC.0 pin has a physical pull-up resistor | \n| 29 | DIGITAL | GPCLK | 5 | 21 | GPCLK1 |  | \n| 30 | GROUND |  |  |  | Ground |  | \n| 31 | DIGITAL | GPCLK | 6 | 22 | GPCL2 |  | \n| 32 | DIGITAL_AND_PWM |  | 12 | 26 | PWM0 | Supports PWM0 [ALT0] | \n| 33 | DIGITAL_AND_PWM |  | 13 | 23 | PWM1 | Supports PWM1 [ALT0] | \n| 34 | GROUND |  |  |  | Ground |  | \n| 35 | DIGITAL_AND_PWM | SPI | 19 | 24 | PCM_FS/PWM1 | Supports PWM1 [ALT5] | \n| 36 | DIGITAL | SPI | 16 | 27 |  |  | \n| 37 | DIGITAL |  | 26 | 25 |  |  | \n| 38 | DIGITAL | SPI | 20 | 28 | PCM_DIN |  | \n| 39 | GROUND |  |  |  | Ground |  | \n| 40 | DIGITAL | SPI | 21 | 29 | PCM_DOUT |  | \n\n\n#### Compute J5\n\n| Pin n° | Type | Function | BCM n° | Wiring pi n° | Name | Remark | \n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | \n\n\n#### Compute J6\n\n| Pin n° | Type | Function | BCM n° | Wiring pi n° | Name | Remark | \n| :--- | :--- | :--- | :--- | :--- | :--- | :--- | \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdelporte%2Fpiheaders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdelporte%2Fpiheaders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdelporte%2Fpiheaders/lists"}