# how to control the GPIO?

**URL:** <https://forums.developer.nvidia.com/t/how-to-control-the-gpio/62729>\
**Category:** Jetson TX2\
**Created:** [June 29, 2018, 3:09am UTC](https://forums.developer.nvidia.com/t/how-to-control-the-gpio/62729 "2018-06-29T03:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk.kang](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mk.kang](https://forums.developer.nvidia.com/u/mk.kang)\
**Post date:** [June 29, 2018, 3:09am UTC](https://forums.developer.nvidia.com/t/how-to-control-the-gpio/62729/1 "2018-06-29T03:09:41Z")

</div>

Hi! I’m mingu.

I want to control the GPIO port in Jetson TX2.

I start by controlling the LED on the pin.

I use ubuntu OS. How do i program using the c language?

Where can i find related resources?

---

<div class="post-metadata">

**Author:** ![JerryChang](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jerrychang/32/14043_2.png) [@JerryChang](https://forums.developer.nvidia.com/u/JerryChang)\
**Post date:** [June 29, 2018, 5:56am UTC](https://forums.developer.nvidia.com/t/how-to-control-the-gpio/62729/2 "2018-06-29T05:56:41Z")

</div>

hello mk.kang,

you could download the kernel sources via Jetson Download Center,[https://developer.nvidia.com/embedded/downloads](https://developer.nvidia.com/embedded/downloads)  
and checking below for reference, thanks

```auto
sources/kernel/kernel-4.4/drivers/media/platform/tegra/camera/camera_gpio.c

```

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:29pm UTC](https://forums.developer.nvidia.com/t/how-to-control-the-gpio/62729/3 "2021-10-18T18:29:27Z")

</div>

Closed on October 18, 2021, 6:29pm UTC


