Hi,
I’m doing an app to read / write analog and digital inputs. But I found no example using C #. Following the model TdxAllLibraries.dll rode the example below, but does not work.
can anyone help me to use this dll with C #?
//create a uIO PIN
gpio.uIo pin = new gpio.uIo();
pin.ColibriPin.nr = 103;
pin.ColibriPin.tp = 1; //< direction: ioInput = 0, ioOutput = 1
//init GPIO
IntPtr gpHandle = gpio_vyb.VybGpio_Init(null);
//set pin to Hi
gpio_vyb.VybGpio_SetLevel(gpHandle, pin, gpio.tIoLevel.ioHigh);
//Deinit GPIO
gpio_vyb.VybGpio_Deinit(gpinit);