I have installed Java on my BeagleBone Black and, using B4J-bridge, it is possible to run programs developed in B4J on the beagleboard. It would be really nice to have a library, like ‘Pi4J’, to control the BeagleBone Black GPIO pins. There is a Python library that does exactly that, ‘Adafruit_BBIO.GPIO’. Can anyone tell if it is possible to wrap such a library to be used with B4J?
jPi4J library invokes native methods. It will only work on Raspberry Pi boards.
Python can load C / C++ libraries. These libraries will not really help. You need to search for a Java library (which can wrap the native C libraries).
'Libbulldog', http://libbulldog.org/bulldog/, is said to be 'a free and easy to use Java library to access low level peripherals like GPIO pins or I2c buses' for 'BeagleBoard Black' and 'Raspberry Pi'.
The 'BeagleBoard Black' version handles:
GPIO
PWM
ADC
UART
I2C
SPI
and 'Raspberry Pi'
GPIO
PWM
for revision A and B
Does anyone know how to make these libraries available for B4J?
Yes, I know 'Raspberry Pi' already is supported. But... 'BeagleBoard Black' isn't and has a lot more I/O possibilities that it would be really nice to be able to handle.