Pi4J is the Java library that gives you access to the hardware I/O of the Raspberry Pi: GPIO pins, I2C, SPI, PWM, and serial communication. With it, you can read a button, blink an LED, or talk to a sensor from plain Java code, running on the Pi itself.
Talking to a real component, however, takes more than raw pin access. Every sensor, display, or motor controller has its own registers, commands, and timing rules. That's where Pi4J Drivers comes in: a library on top of Pi4J with ready-to-use drivers for popular hardware components, so you can work with a high-level Java API instead of reading datasheets and writing low-level I2C, SPI, or GPIO code yourself.
A new release of the Pi4J Drivers library is available! Version 1.2.0 is a big step forward, adding support for many new components.…