You can clone a complete Netbeans Project including the required libraries. It uses pi4j. The jar in the project has been modified to support he 500000 baud rate.
Most sensors are missing. Except for I2C, color_full and ultrasonic other sensors should work as a RawSensor.
Motor is implemented but not yet tested.
The interfaces/APIs are subject to change at this point.
You can integrate Netbeans so that it will automatically copy the code to the PI following the instructions here:
Hi!
I’ve a problem with Ultrasonic sensor. It give me random value from 990 to 1010. I’m using the same procedure descript in the last post. What could be the problem?
Hi,
I’ve just tried the Java library but only the Ultrasonic sensor. It looks great. Thanks for add Java support to the BrickPi. I would like to add sensors and robotic controllers (ie. Tetrix, Matrix) so I try to get into the code and I should say is not that easy for me like it was for lejos (Java on the Lego Brick).
In lejos you have method for write and read register on the device and, if you have access to the device spec, you are almost done.
With BrickPi Java, as far I understood, the reads and writes follow different rules/protocol, where I can get details about that?
Could someone just add a very simple sensor, one that use at least a “write” to a register (ie. set the accelerometer scale), with few comments? I think this will help understand the “mapping” between the device spec and the BrickPi’s bytes we send/read from the serial.
Thanks
Frank