# Is there a sample app using gpio pin?

**URL:** <https://mangoh.discourse.group/t/is-there-a-sample-app-using-gpio-pin/4522>\
**Category:** mangOH Yellow\
**Created:** [May 27, 2020, 8:35am UTC](https://mangoh.discourse.group/t/is-there-a-sample-app-using-gpio-pin/4522 "2020-05-27T08:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [May 27, 2020, 11:11am UTC](https://mangoh.discourse.group/t/is-there-a-sample-app-using-gpio-pin/4522/5 "2020-05-27T11:11:31Z")

</div>

You can use sysfs command to control gpio

> [@Controlling WP\_GPIO\_1 / GPIO22 problem](https://mangoh.discourse.group/t/controlling-wp-gpio-1-gpio22-problem/984):
>
> Hello I try to control gpio22 (WP\_GPIO\_2 on the mangoh Red, pin13 on PI header) but I get a warning when starting the app: -WRN- | gpioService[789]/sysfsGpio T=main | gpioSysfsUtils.c gpioSysfs\_SessionOpenHandlerFunc() 1112 | Unable to export GPIO gpio22 for use - stopping session Changing to gpio21 and the app works fine. Any tips to get gpio22 working? [image]

---

_[View the full topic](https://mangoh.discourse.group/t/is-there-a-sample-app-using-gpio-pin/4522)._
