Skip to content
@Pi4J

Pi4J

The Pi4J Project

The Pi4J Project

This project is intended to provide a friendly object-oriented I/O API and implementation libraries for Java Programmers to access the full I/O capabilities of the Raspberry Pi platform. This project abstracts the low-level native integration and interrupt monitoring to enable Java programmers to focus on implementing their application business logic.

The original library started in 2012 and was last released in 2021 with versions V1.3 (Java 8) and V1.4 (Java 11). V.2 had its first release in August 2021 and brings a new plugin model that helps to enable third-party development and supports third-party add-ons which may be developed and maintained independently of the core Pi4J project. More info is provided on What’s New in 2.0. As of V2, Pi4J no longer includes support for peripheral devices and add-on chipsets/boards as part of the core project, to be able to provide a stable platform that can easily be tested.

Within this GitHub project, you can find many other repositories, including examples and other Raspberry Pi-dedicated Java projects.

Pinned Loading

  1. pi4j pi4j Public

    Pi4J, the Java library to control the GPIOs of the Raspberry Pi

    Java 338 71

  2. pi4j-example-minimal pi4j-example-minimal Public

    Minimal example project showing how to use Pi4J V2 with a digital input and output

    Java 26 22

  3. pi4j-example-crowpi pi4j-example-crowpi Public template

    Pi4J V2 example which introduces you to electronics programming with Java on the Raspberry Pi and CrowPi

    Java 12 11

  4. pi4j-example-devices pi4j-example-devices Public

    Device support project for various electronic components

    Java 15 9

Repositories

Showing 10 of 27 repositories
  • pi4j Public

    Pi4J, the Java library to control the GPIOs of the Raspberry Pi

    Pi4J/pi4j’s past year of commit activity
    Java 338 Apache-2.0 71 72 6 Updated Jan 7, 2026
  • pi4j-example-devices Public

    Device support project for various electronic components

    Pi4J/pi4j-example-devices’s past year of commit activity
    Java 15 9 0 0 Updated Jan 6, 2026
  • download Public

    Pi4J APT/PPA Package Repository

    Pi4J/download’s past year of commit activity
    Shell 8 1 0 0 Updated Jan 2, 2026
  • pi4j-drivers Public

    Drivers for various electronic components, using the Pi4J library

    Pi4J/pi4j-drivers’s past year of commit activity
    Java 3 Apache-2.0 3 0 0 Updated Dec 15, 2025
  • pi4j.github.io Public

    The Pi4J Website

    Pi4J/pi4j.github.io’s past year of commit activity
    HTML 6 21 10 2 Updated Dec 12, 2025
  • pi4j-jbang Public

    JBang examples to get started with Pi4J V2

    Pi4J/pi4j-jbang’s past year of commit activity
    Java 8 Apache-2.0 4 0 0 Updated Dec 12, 2025
  • pi4j-os Public

    Raspberry Pi OS based with additional tooling for Java development

    Pi4J/pi4j-os’s past year of commit activity
    Java 19 Apache-2.0 0 2 0 Updated Nov 21, 2025
  • Pi4J/pi4j-example-components’s past year of commit activity
    Java 10 Apache-2.0 8 9 0 Updated Nov 6, 2025
  • pi4j-template-javafx Public template

    Template project to get you started with Pi4J V2 and JavaFX with a MVC-model

    Pi4J/pi4j-template-javafx’s past year of commit activity
    Java 19 Apache-2.0 5 8 0 Updated Nov 6, 2025
  • pi4j-docker Public

    Pi4J Build Environment Docker Images (java, maven, gcc ARM cross-compilers, etc.)

    Pi4J/pi4j-docker’s past year of commit activity
    Shell 1 2 1 0 Updated Oct 1, 2025