nkolban / jpigpio Goto Github PK
View Code? Open in Web Editor NEWA Java interface to the Raspberry Pi pigpio library
License: Apache License 2.0
A Java interface to the Raspberry Pi pigpio library
License: Apache License 2.0
Notes:
1.) Compile java code to .class files:
unzip master.zip
cd jpigpio-master
cd jpigpio
mkdir bin
javac $(find . -name "*.java") -d bin
2.) Change JPigpio/Makefile install dir: i.e. /home/pi
3.) Change JPigpioC/Makefile to match above: i.e. /home/pi
4.) Make sure JAVA_HOME is set (mine wasn't). Added it to makefile.
5.) Run make from jpigpio-master
Hi,
Sorry if I've missed something but I'm not sure how to get the required jar.
I tried make but it seems to need a file in /mnt/share/opt/lib/Pigpio.jar
Thanks
Sam
Hi there.
I'm trying to use your PIgpio, more exactly the MFRC522 interface but I can really understand how can you continuous looking for when a card is close to the RC522 module.
Do you have any example that can share with us?
Kind regards
Hi,
Is there a technical reason for not providing a socket version of gpioSetAlertFunc?
pigpio itself seems to provide it.
Thanks
Jim
Is there a class that wraps around pigpio's PWM support?
Hi,
I'm trying to use this library as a good alternative to WiringPi as it does not require root permissions (at least not for socket access), but I'm missing implementation of serial functions (I'd like to connect serial printer :-).
Would you be so kind and add those?
Thank you.
Jozef.
Getting error "Can't lock /var/run/pigpio.pid" when attempting to run Blink_Test as shown below:
pi@raspberrypi:~ $ sudo java -Djava.library.path=/home/pi -jar Desktop/Test_Blink.jar
Test_Blink
2017-12-05 11:36:46 initInitialise: Can't lock /var/run/pigpio.pid
jpigpio.PigpioException: (-1) pigpio initialisation failed
at jpigpio.Pigpio.gpioInitialize(Native Method)
at tests.Test_Blink.run(Test_Blink.java:43)
at tests.Test_Blink.main(Test_Blink.java:30)
Hi!,
Can you upload the library to Bintray to use it with Gradle?
https://bintray.com/search?query=jpigpio
Best regards,
Javier
I finally got JPigpio properly installed and running with pigpio but when I run the Test_Blink or the Test_gpioSetAlertFunc I get no response out or in. I can run another program using pi4j and these same pins respond. Any ideas? I get no error messages and jpgpio test code runs as expected just no I/O.
Do you have a example for Java?
I want to use the MFRC522.java but I couldn't find unit tests or sample files that show how to use it. Any pointers are welcome.
Hi! For easier development i am trying to release the Build to Maven repository.
I will also update the Documentation about Build & Install some time in the future.
Ticket for requesting a repo at sonatype: https://issues.sonatype.org/browse/OSSRH-28498
I added @nkolban and @sovcik to the developers in metadata of the parent pom.xml.
If i can do something else, please tell me!
Thank you very much for developing this project so far!
Hi there.
I'm trying to build your repo, but I always get this error:
pi@raspberrypi:~/jpigpio $ ./build.sh
rm -f /home/pi/jpigpio/Pigpio.jar
jar -cvf /home/pi/jpigpio/Pigpio.jar -C bin jpigpio
bin/jpigpio : no such file or directory
added manifest
Makefile:4: recipe for target 'install' failed
make: *** [install] Error 1
rm -f *.o libJPigpioC.so jpigpio_Pigpio.h /home/pi/jpigpio/libJPigpioC.so
javah -cp ../JPigpio/bin jpigpio.Pigpio
Error: Could not find class file for 'jpigpio.Pigpio'.
Makefile:15: recipe for target 'jpigpio_Pigpio.h' failed
make: *** [jpigpio_Pigpio.h] Error 1
pi@raspberrypi:~/jpigpio $
Can you tell me whats happening?
Kind regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.