# Pi4J/pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)

Repository: https://github.com/Pi4J/pi4j-v1
Canonical: https://ross.abutalabs.com/products/pi4j-v1
Homepage: http://www.pi4j.com
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2024-01-11T12:11:19+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5107, "days_push": 965, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1281, forks 437 (observed 2026-08-28T04:04:13.911042+00:00)

## What it is
Pi4J v1 is a Java I/O library providing object-oriented access to Raspberry Pi hardware interfaces such as GPIO, I2C, SPI, PWM, and UART/serial. The repository is archived and deprecated; the project has moved to the rewritten Pi4J v2+ codebase.

## Use cases
- control gpio pins from java on raspberry pi
- read i2c sensors with java
- communicate over spi from a java program
- blink an led with java on a raspberry pi
- use serial uart from java on raspberry pi
- maintain a legacy java app that uses pi4j v1

## When to choose
- you must maintain an existing legacy application already written against the Pi4J 1.x API
- you are pinned to Java 8/11 and cannot migrate to Pi4J v2+

## When to avoid
- you are starting a new Raspberry Pi Java project - use Pi4J v2+ instead
- you need support for newer Raspberry Pi models like the Pi 5 or modern JDKs
- you need ongoing bug fixes or community support

## Facets
- artifact type: library
- maturity: abandoned
- function: embedded, sdk, developer-tools
- domain: embedded-systems, hardware, iot, cross-platform
- platform: jvm, embedded
- tags: raspberry-pi, gpio, i2c, spi, uart, pwm, deprecated, single-board-computer, hardware-io, archived, linux

## Member repositories
- Pi4J/pi4j-v1 (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.911042+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:58:17.441638+00:00, confidence not recorded.
  - readme: https://github.com/Pi4J/pi4j-v1 (fetched 2026-08-28T04:04:13.911042+00:00, sha 1fcce98d73ed)
  - homepage: http://www.pi4j.com (fetched 2026-08-29T12:13:02.657066+00:00, sha 407ce17a2645)
  - site_page: https://www.pi4j.com/about (fetched 2026-08-29T12:13:02.666236+00:00, sha c716eecfdc3b)
  - site_page: https://www.pi4j.com/about/history (fetched 2026-08-29T12:13:02.668456+00:00, sha 4697c834c4ce)
  - site_page: https://www.pi4j.com/about/info-v1 (fetched 2026-08-29T12:13:02.669935+00:00, sha 49eb31f50ecd)
  - site_page: https://www.pi4j.com/about/info-v2 (fetched 2026-08-29T12:13:02.671348+00:00, sha 49302d967de1)
  - site_page: https://www.pi4j.com/about/info-v3 (fetched 2026-08-29T12:13:02.672982+00:00, sha 9d2b7b719bdf)
  - site_page: https://www.pi4j.com/about/info-v4 (fetched 2026-08-29T12:13:02.674340+00:00, sha ad196672a8e2)
  - site_page: https://www.pi4j.com/about/release-notes (fetched 2026-08-29T12:13:02.675961+00:00, sha f671a02b389f)
  - site_page: https://www.pi4j.com/about/download (fetched 2026-08-29T12:13:02.678388+00:00, sha b5067076a615)
- Data as of 2026-08-30T08:39:29.467469+00:00.
