# How to activate the GPIO's of mangOH?

**URL:** <https://mangoh.discourse.group/t/how-to-activate-the-gpios-of-mangoh/548>\
**Category:** Uncategorized\
**Created:** [May 23, 2017, 2:06pm UTC](https://mangoh.discourse.group/t/how-to-activate-the-gpios-of-mangoh/548 "2017-05-23T14:06:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chase.jang](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@chase.jang](https://mangoh.discourse.group/u/chase.jang)\
**Post date:** [May 23, 2017, 2:06pm UTC](https://mangoh.discourse.group/t/how-to-activate-the-gpios-of-mangoh/548/1 "2017-05-23T14:06:26Z")

</div>

Hi All,

I’d like to control the GPIO’s of mangOH.  
So, I made a simple sample as below, and did connect the LED to GPIO8.

```
if( le_gpioPin8_SetPushPullOutput(LE_GPIOPIN8_ACTIVE_HIGH, true) != LE_OK)
    LE_INFO("Couldn't configure Pin8 as a push pull output\n");
else
    LE_INFO("Could configure Pin8 as a push pull output\n");

LE_INFO("Pin 8 is output = %s", le_gpioPin8_IsOutput()?"true":"false");
le_gpioPin8_Activate();
LE_INFO("Pin 8 is active = %s", le_gpioPin8_IsActive()?"true":"false");

```

But, the return value is false when I checked a activate.  
How to activate the gpio pin?

Thanks in Advance,  
Chase

---

<div class="post-metadata">

**Author:** ![chase.jang](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@chase.jang](https://mangoh.discourse.group/u/chase.jang)\
**Post date:** [May 24, 2017, 11:33am UTC](https://mangoh.discourse.group/t/how-to-activate-the-gpios-of-mangoh/548/2 "2017-05-24T11:33:25Z")

</div>

There was an error of HW connection.  
It’s works well now.

---

<div class="post-metadata">

**Author:** ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)\
**Post date:** [June 3, 2022, 10:22am UTC](https://mangoh.discourse.group/t/how-to-activate-the-gpios-of-mangoh/548/3 "2022-06-03T10:22:30Z")

</div>

hi any sample available how to configure GPIO as output, and make led to glow on and off

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [June 3, 2022, 1:31pm UTC](https://mangoh.discourse.group/t/how-to-activate-the-gpios-of-mangoh/548/4 "2022-06-03T13:31:44Z")

</div>

you can see here:

> [@Is there a sample app using gpio pin?](https://mangoh.discourse.group/t/is-there-a-sample-app-using-gpio-pin/4522/7):
>
> I used the sysfs command, but I don’t know what api can be used to produce the desired output on the digital pin through which function call can be used.
