I already update jPi4J to version 2.00 and I also follow the step in https://www.b4x.com/android/forum/threads/raspberry-pi-4b-gpio-not-working.118488/#post-741684
my B4J version is 9.30 and use opendjk11
I have enable spi
I create a small test project
But still can't make it work
I really need to know how to make it work.
Thank you.
my B4J version is 9.30 and use opendjk11
B4X:
pi@raspberrypi:~ $ gpio -v
gpio version: 2.52
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Pi 4B, Revision: 02, Memory: 4096MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi 4 Model B Rev 1.2
* This Raspberry Pi supports user-level GPIO access.
I have enable spi
B4X:
pi@raspberrypi:~ $ lsmod | grep spi
spidev 20480 0
spi_bcm2835 24576 0
I create a small test project
B4X:
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
Private controller As GpioController
Private p As GpioPinDigitalOutput
End Sub
Sub AppStart (Args() As String)
Log("test")
controller.Initialize
p.Initialize(15, False)
test
StartMessageLoop
End Sub
Sub test
Dim b As Boolean
Do While True
p.State = b
b = Not(b)
Log(b)
Sleep(1000)
Loop
End Sub
But still can't make it work
B4X:
Waiting for debugger to connect...
Program started.
test
Unable to determine hardware version. I see: Hardware : BCM2711
,
- expecting BCM2708, BCM2709 or BCM2835.
If this is a genuine Raspberry Pi then please report this
to [email protected]. If this is not a Raspberry Pi then you
are on your own as wiringPi is designed to support the
Raspberry Pi ONLY.
I really need to know how to make it work.
Thank you.