# LED control from application

**URL:** <https://mangoh.discourse.group/t/led-control-from-application/239>\
**Category:** mangOH Green\
**Created:** [October 11, 2016, 10:59am UTC](https://mangoh.discourse.group/t/led-control-from-application/239 "2016-10-11T10:59:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobyjaffey](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tobyjaffey](https://mangoh.discourse.group/u/tobyjaffey)\
**Post date:** [October 11, 2016, 10:59am UTC](https://mangoh.discourse.group/t/led-control-from-application/239/1 "2016-10-11T10:59:31Z")

</div>

Is there an LED on MangOH Green which can be controlled from userspace?  
Either via /sys/class/leds, or from a command line tool?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [October 11, 2016, 3:22pm UTC](https://mangoh.discourse.group/t/led-control-from-application/239/2 "2016-10-11T15:22:08Z")

</div>

We plan to release tutorials on this in the next day or so.

there is a user controllable LED on mangOH Green Rev 8.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [October 11, 2016, 3:29pm UTC](https://mangoh.discourse.group/t/led-control-from-application/239/3 "2016-10-11T15:29:56Z")

</div>

In the [mangOH green DV4 schematic](http://mangoh.io/docs/schematic_mangOH_Green_DV4_2500905.pdf) on page 9, you can see that there is a GPIO on GPIO expander #1 labeled “connect\_to\_AV\_LED”. This LED doesn’t serve any specific purpose in the system and thus it can be used as a general purpose LED. In order to configure the GPIO and control the LED, you will want to bind your application to the `gpioExpanderService`. If you don’t know how to do this, then I would suggest you wait a day or two until the tutorials that Ashish mentioned are posted.
