{"repo":"mattjlewis/pigpioj","free":true,"listed":false,"github":"https://github.com/mattjlewis/pigpioj","clone":"git clone https://github.com/mattjlewis/pigpioj.git","description":"Java JNI wrapper around the pigpio C library","language":"Java","stars":22,"topics":["hacktoberfest","raspberry-pi","java","pigpiod","pigpio"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"About pigpioj is a Java wrapper around the excellent Raspberry Pi C library pigpio. Note that the primary driver for developing pigpioj was to provide an optimised hardware interface library for the platform and device independent library diozero. Make sure pigpio is installed on your Raspberry Pi: pigpioj has two modes of operation: 1. JNI 1. Remote sockets JNI The JNI mode requires a small system library to be loaded at runtime that allows Java to invoke the pigpio C interface. This library is packaged in the pigpioj JAR file and is loaded automatically when uk.pigpioj.PigpioJ.getImplementation() is invoked. pigpioj provides native libraries that are compiled for ARMv6, ARMv7 and AArch64 CPU architectures which are bundled within the pigpioj JAR file itself. At startup, pigpioj will detect the CPU architecture and dynamically load the appropriate JNI library. It will first look for libpigpioj.so on the Java library path, if not found it will extract the library from within the JAR file itself via a temporary file that is automatically deleted once loaded. The optimisations within pigpio (using /dev/mem ) unfortunately requires root access. Because of this all pigpioj applications that use the default JNI mode must be run as root. In addition, the pigpio shared library must be installed on the Raspberry Pi; it can be installed by running: In addition, the pigpiod daemon process must not be running: The pigpiod daemon process can be disabled from automatically starting on a r","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattjlewis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattjlewis/pigpioj/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}