Sub Process_Globals
Private controller As GpioController
End Sub
Sub AppStart (Args() As String)
controller.Initialize
Private lcd As JavaObject
lcd.InitializeStatic("com.pi4j.wiringpi.Lcd")
'int lcdInit(int rows, int cols, int bits, int rs, int strb, int d0, int d1, int d2, int d3, int d4,
' int d5, int d6, int d7);
'Private handle As Int = lcd.RunMethod("lcdInit", Array(2,16,4,2,3,4,14,15,17,0,0,0,0))
Private handle As Int = lcd.RunMethod("lcdInit", Array(2,16,4,8,9,7,15,16,0,0,0,0,0))
lcd.RunMethod("lcdPosition", Array(handle, 0,0))
lcd.RunMethod("lcdPuts", Array(handle, "Test LCD on Rpi"))
lcd.RunMethod("lcdPosition", Array(handle, 0,1))
lcd.RunMethod("lcdPuts", Array(handle, "Pi4j with B4J"))
End Sub