Awesome Open Source
Awesome Open Source

diozero - a Java Device I/O wrapper for GPIO / I2C / 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 / 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.I.P and ASUS Tinker Board. It should be portable to any Single Board computer that runs Linux and Java 8.

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 [email protected]) (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 diozero Google Group.

Please refer to the GitHub Pages site for further documentation.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (688,816
Hacktoberfest (37,777
Arduino (21,458
Raspberry Pi (7,380
I2c (753
Serial (589
Gpio (515
Spi (451
Serial Communication (191
Related Projects