You can modify the rLiquidCrystal_I2C library and make lcd a public variable. Change your library code to accept a B4RLiquidCrystal_I2C* and get the native object with
lcd->lcd
Hi rwblinn, thank you a lot.
Now what should I do to pass an array of lcd?
I tried
B4X:
void Initialize(ArrayB4RLiquidCrystal_I2C* lcd);
an a many other things, but doesn't work, I receive different errors.
Is it possible to pass in a method an array of a non-trivial type?
I mean, I'm able to pass an array of Byte, an array of Int, and so on. But I can't pass an array of a type like lcd or AdafruitNeoPixel.