I am writing a library for the Raspberry Pi with Xojo. My intent is to make the syntax the same (or very similar) as Python.
pi = pigpio.pi()
How do I make the variable pi accept a handle value from the module pigpio and then use the variable as a handle value?
What I am doing now is
pigpio.Handle = pigpio.pi()
Call pigpio.set_mode(pigpio.Handle, 18, pigpio.OUTPUT)
How to I convert the module name pigpio to pi, and then have pi referenced as the handle in Xojo? I tried to set up the pigpio library as a class, but classes don’t extend.