# BlueROV2 GPIO set

**URL:** <https://discuss.bluerobotics.com/t/bluerov2-gpio-set/2252>\
**Category:** BlueROV2\
**Created:** [March 2, 2018, 2:13am UTC](https://discuss.bluerobotics.com/t/bluerov2-gpio-set/2252 "2018-03-02T02:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMMMK](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@MMMMK](https://discuss.bluerobotics.com/u/MMMMK)\
**Post date:** [March 2, 2018, 2:13am UTC](https://discuss.bluerobotics.com/t/bluerov2-gpio-set/2252/1 "2018-03-02T02:13:13Z")

</div>

From the ardusub，I find that

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/c/cf0039d447fa99b4577acdfd6d67763ec091709b.png)  
It seems we can control the pixhawk to output high or low level，  
but how can we control it through joystick ?

---

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [March 2, 2018, 5:31pm UTC](https://discuss.bluerobotics.com/t/bluerov2-gpio-set/2252/2 "2018-03-02T17:31:01Z")

</div>

In the Joystick setup page, you may assign the _relay_ functions to joystick buttons. You can assign the relay channel outputs with the RELAYn\_PIN parameters. The default is relay 1 and 2 on aux 4 and 5 respectively.
