Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 535 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 535 Bytes

pi4j-core-osgi

This repository contains a bundle with the following line added to MANIFEST.MF to use the I2C function of Pi4J 1.2 (pi4j-core.jar) in Java 8 / OSGi environment.

Import-Package: sun.misc;resolution:=optional

Note. To use Pi4J 1.2's I2C functionality, sun.misc.SharedSecrets.class is required, but this class can only be used up to Java 8 and cannot be used since Java 9.

I would like to thank the authors of this very useful Pi4J code, and all the contributors.