B4J Library [IoT] jPi4J - Raspberry Pi GPIO controller - Erel    
Jun 26, 2023   
(19 reactions)   
tags: Raspberry Pi GPIOUpdated libraries: https://www.b4x.com/android/forum/threads/pi4j2-raspberry-pi-i-o-library.136113/#content
This is a wrapper for Pi4J library.
It allows you are control the Raspberry Pi board GPIO pins.
Using this library is quite simple. You can use it from a UI app or non-UI app.
First you should initialize a GpioController object.
The second step is to initialize one or more pins.../android/forum/threads/jpi4j-raspberry-pi-gpio-controller.37493/#post-232767
Download link: www...
B4J Question Liberica 11.0.11 full JDK install problem in Raspberry Pi 4b - hatzisn    
Jun 25, 2021Good evening everyone,
I tried to install Liberica 11 from their site (I also tried with 16) in Raspberry Pi 4b. I have read that the full JDK includes the JavaFX too to run UI applications in Raspberry Pi.
I failed big time. I followed the installation instructions as described here:
https://www.b4x.com/android/forum/threads/raspberry-pi-b4j-ui-applications-with-liberica-jdk.92950/
And here is what I get
pi@raspberrypi:~/Downloads $ sudo apt install ./bellsoft-jdk16.0.1+9-linux-aarch64-full...
B4J Library [PyBridge] LGPIO - Raspberry Pi GPIO - Erel    
Mar 11, 2025   
(6 reactions)Based on: https://abyz.me.uk/lg/py_lgpio.html
Tested on RPi 5. It should be compatible with most boards.
With the latest version of Raspbian, everything needed is preinstalled (Python and lgpio).
For now the GPIO related features are wrapped.
162438162439
The attached example demonstrates... close before killing the process).
Getting started with RPi 5: https://www.b4x.com/android/forum/threads/raspberry-pi-5-first-steps.166049/#content...
B4J Tutorial Raspberry Pi with Java 11 - Erel    
Aug 8, 2019   
(16 reactions)Running UI apps on Raspberry Pi with Java 11 is relatively simple.
1. Download Liberica JDK.
Download the lite version: https://github.com/bell-sw/Liberica/releases/download/11.0.1/bellsoft-jdk11.0.1-linux-arm32-vfp-hflt-lite.tar.gz
2. Copy it to the RPi and unpack it:
tar -xvf bellsoft-jdk11-linux-arm32-vfp-hflt-lite.tar
3. Download the latest version of b4j-bridge (1.41+).
wget www.b4x.com/b4j/files/b4j-bridge.jar
4. Run b4j-bridge:
sudo jdk-11/bin/java -jar b4j-bridge.jar...
B4J Tutorial [IoT][RPi] - Raspberry Pi Bluetooth Tutorial - Erel    
Nov 10, 2015   
(8 reactions)Using the new jBluetooth library it is possible to communicate with Raspberry Pi devices over... with a video that shows an Android device connects to the RPi with PiFace. The Android device...
link: Which XML file are you looking for?
Sorry, Erel, i was looking for the JBluetooth library, found it....
link: Which XML file are you looking for?...
link: Using the new jBluetooth library it is possible to communicate with Raspberry Pi devices over...
B4J Tutorial Raspberry Pi 5 - first steps - Erel    
Mar 10, 2025   
(15 reactions)Getting the RPi 5 to work with B4J is very simple.
I've tested it with the recommended 64 bit Raspbian OS (bookworm).
1. Download and unpack the Linux ARM Full JDK (21): https://download.bell-sw.com/java/21.0.6+10/bellsoft-jdk21.0.6+10-linux-aarch64-full.tar.gz
2. Download B4J-Bridge
wget www.b4x.com/b4j/files/b4j-bridge.jar
3. Run b4j-bridge:
jdk-21.0.6-full/bin/java -jar b4j-bridge.jar
I also recommend enabling RPi-Connect, which allows opening a remote session through the browser...
B4J Tutorial B4J and Raspberry Pi boards - Erel    
Dec 5, 2018   
(9 reactions)New tutorial based on Java 11: Raspberry Pi with Java 11
The first step is to download and run B4J-Bridge: Remote debugging with B4J-Bridge
Raspberry Pi is a low-cost Linux board:
http://www.b4x.com/basic4android/images/SS-2014-01-23_11.32.59.jpg
B4J v1.50 adds support for these boards.
Here are two screenshots:
DBUtils:
http://www.b4x.com/basic4android/images/SS-2014-01-23_11.36.26.jpg
Moving smiley:
http://www.b4x.com/basic4android/images/SS-2014-01-23_11.37.04.png
Out of the box...
B4J Tutorial [RPi] - PiFace Control And Display (CAD) - Erel    
Jan 21, 2016   
(16 reactions)https://www.b4x.com/basic4android/images/SS-2016-01-21_14.23.06.png
jPi4J library supports the PiFace Digital extension. However it doesn't support the CAD module as the underlying library (Pi4J) doesn't support it.
So we need to be a bit more creative here.
We will run and interact with a simple Python script using UDP. Note that an external network is not required.
The Python script w...
B4J Tutorial [PyBridge] Communicating with Raspberry Pi - Erel    
Mar 12, 2025   
(8 reactions) the RPi, and a notification appears on the PC.
162492
The setup:
RPi running Mosquitto broker as a service: https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/
The RPi runs..., 10000)
mqtt.Initialize("mqtt", "tcp://127.0.0.1:1883", "rpi"... & Level)
If Level = 0 Then
mqtt.Publish("rpi", "button clicked!"... it here: https://www.b4x.com/android/forum/threads/pybridge-lgpio-raspberry-pi-gpio.166064/#post...
B4J Library Pi4J2 - Raspberry Pi I/O library - Erel    
Jun 26, 2023   
(19 reactions)At some point during 2019, the author of wiringpi, which is the native library that Pi4J was based on, stopped its development.
Luckily, there is a new version of Pi4J which is now being actively developed and it works with all recent versions of Raspberry Pi. It is not backward compatible.
jPi4J2 wraps the new Pi4J2 library. Currently only DigitalInput and DigitalOutput types are exposed.
Blink example:
Sub Process_Globals
Private pi4j As Pi4J
Private PinOut As DigitalOutput
End...
Page: 1  
2  
3  
4  
5  
6  
7