GitPedia

Diozero

Java Device I/O library that is portable across Single Board Computers and microcontrollers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos / Pico. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.

From mattjlewis·Updated June 22, 2026·View on GitHub·

A Device I/O library written in Java that provides an object-orientated interface for a range of GPIO / I2C / SPI devices (LEDs, buttons, sensors, motors, displays, etc) connected to Single Board Computers like the Raspberry Pi. Actual GPIO / I2C / SPI device communication is delegated to pluggable service providers for maximum compatibility across different boards. This library is known to work on the following boards: all models of the Raspberry Pi, Odroid C2, BeagleBone (Green and Black), C.H... The project is written primarily in Java, distributed under the MIT License license, first published in 2016. Key topics include: analog-devices, arduino, asus-tinker-board, beaglebone-black, firmata.

Latest release: 0.12-SNAPSHOT3
May 12, 2019View Changelog →

author: "Matthew Lewis"

diozero - a Java Device I/O wrapper for GPIO / I<sup>2</sup>C / SPI control

Maven CI Build
Maven Central Status
License: MIT
Javadoc

A Device I/O library written in Java that provides an object-orientated interface for a range of
GPIO / I<sup>2</sup>C / SPI devices (LEDs, buttons, sensors, motors, displays, etc) connected to Single
Board Computers like the Raspberry Pi. Actual GPIO / I<sup>2</sup>C / SPI device communication is delegated
to pluggable service providers for maximum compatibility across different boards. This library is
known to work on the following boards: all models of the Raspberry Pi, Odroid C2, BeagleBone
(Green and Black), C.H.I.P and ASUS Tinker Board. It should be portable to any Single Board computer that
runs Linux and Java 11+.

This library makes use of modern Java features such as
automatic resource management,
Lambda Expressions and
Method References
where they simplify development and improve code readability.

Created by Matt Lewis (email deviceiozero@gmail.com) (blog),
inspired by GPIO Zero and Johnny Five.
If you have any issues please use the GitHub issues page.
For any other comments or suggestions, please use the GitHub discussions page.

Please refer to the GitHub Pages site for further documentation.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from mattjlewis/diozero via the GitHub API.Last fetched: 6/28/2026