Libmraa - the mraa_gpio_dir() function sets output gpio and initialize the gpio LOW

Hi Everyone,

I am using libmraa library to controll the Radxa Zero GPIOs.
I have noticed that when I called mraa_gpio_dir(gpioCxt, MRAA_GPIO_OUT); function to set a gpio to output, the function also initialized the gpio to LOW.

This cause a problem because of I would like to always keep the GPIO HIGH.
How can I set the gpio OUTPUT and not initialize the gpio LOW?

Thanks in advance.
Dennis

I found the solution, use: MRAA_GPIO_OUT_HIGH to set the direction and initialize HIGH.
enum mraa_gpio_dir_t { MRAA_GPIO_OUT = 0, MRAA_GPIO_IN = 1, MRAA_GPIO_OUT_HIGH = 2, MRAA_GPIO_OUT_LOW = 3 }
Cheer