Jump to content

Java Periphery released!


sgjava

Recommended Posts

Java Periphery has finally been released! Java Periphery is a high performance library for GPIO, LED, PWM, SPI, I2C, MMIO and Serial peripheral I/O interface access in userspace Linux. This will replace User Space IO. I'm seeing GPIO write speeds of 500K/s from userspace. Compared to User Space IO and libgopid speeds of 2K/s. I switched from JNA wrapper generation to JNI wrapper generation. The build process is much simpler (only single install.sh) and building libgpiod is no longer required. The API follows c-peripherypython-periphery and lua-periphery. This should cover the widest array of SBCs and languages around.

 

Java Periphery should work on Armbian/Ubuntu/Debian, but also other non-Armbian distributions. If you run into issues please use Github issues to report.

 

Nano Pi Duo

13:30:43.065 [main] INFO  com.codeferm.periphery.demo.GpioPerf - Running write test with 10000000 samples
13:31:23.062 [main] INFO  com.codeferm.periphery.demo.GpioPerf - 500613.25 writes per second
13:31:23.065 [main] INFO  com.codeferm.periphery.demo.GpioPerf - Running read test with 10000000 samples
13:31:54.471 [main] INFO  com.codeferm.periphery.demo.GpioPerf - 318440.91 reads per second

Nano Pi Neo Plus 2

15:06:51.946 [main] INFO  com.codeferm.periphery.demo.GpioPerf - Running write test with 10000000 samples
15:07:22.522 [main] INFO  com.codeferm.periphery.demo.GpioPerf - 654964.63 writes per second
15:07:22.524 [main] INFO  com.codeferm.periphery.demo.GpioPerf - Running read test with 10000000 samples
15:07:46.696 [main] INFO  com.codeferm.periphery.demo.GpioPerf - 413770.27 reads per second

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines