Registry / other / pi4j-core

pi4j-core

JSON →
library4.0.1javamavenunverified

Core library for Pi4J, providing Java APIs to interact with Raspberry Pi GPIO and peripherals.

<dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>4.0.1</version> </dependency>
INSTALL
IMPORT
SIG · PI4J-CORE
P
pi4j-core
otherjavav4.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GpioController
com.pi4j.io.gpio.GpioController

Initializes the GPIO controller on a Raspberry Pi.

import com.pi4j.io.gpio.GpioController; import com.pi4j.io.gpio.GpioFactory; public class Main { public static void main(String[] args) { GpioController gpio = GpioFactory.getInstance(); System.out.println("GPIO controller initialized"); } }
Debug
Known issues
breakingPi4J v2+ has breaking API changes; this is v4 which is a complete rewrite.
fix
Refer to Pi4J v4 documentation for new API usage.
affects: >=4.0.0
Upgrade
Version history
4.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pi4j-core — mvn dependency:get pi4j-core · libregistry