# About 14 pins gpio in clockwork

**URL:** <https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998>\
**Category:** FAQ\
**Tags:** hardware\
**Created:** [December 20, 2019, 1:01pm UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998 "2019-12-20T13:01:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![WangTingZheng](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/wangtingzheng/32/3546_2.png) [@WangTingZheng](https://forum.clockworkpi.com/u/WangTingZheng)\
**Post date:** [December 20, 2019, 1:01pm UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998/1 "2019-12-20T13:01:52Z")

</div>

I know clockworkpi in gameshell has 14 pins can be used as communication pin to connect with other devices with UART/SPI/I2C, but I don’t know how to control gpio in software. I have seen this [page](https://forum.clockworkpi.com/t/gpio-pins-how-do-they-work/199/2) but It seems people in the page has no idea to control it in `/sys/class/gpio` . And then I seen this [page](https://www.bilibili.com/video/av68036252), it’s a video to teach how to control gpio in orange pi, but the orange pi has larger difference with clockworkpi. Do you get some experience in clockworkpi gpio control? Can you help me？

---

<div class="post-metadata">

**Author:** ![0x0c](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/0x0c/32/3515_2.png) [@0x0c](https://forum.clockworkpi.com/u/0x0c)\
**Post date:** [December 21, 2019, 5:16am UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998/2 "2019-12-21T05:16:01Z")

</div>

Same question for me. We need more detailed guideline for the usage of GPIO.

---

<div class="post-metadata">

**Author:** ![guu](https://avatars.discourse-cdn.com/v4/letter/g/7ab992/32.png) [@guu](https://forum.clockworkpi.com/u/guu)\
**Post date:** [December 21, 2019, 3:26pm UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998/3 "2019-12-21T15:26:16Z")

</div>

> [@GPIO pins - how do they work](https://forum.clockworkpi.com/t/gpio-pins-how-do-they-work/199/7):
>
> I’m trying to control the pins through /sys/class/gpio for any pin N, I get cpi@clockworkpi:~$ cd /sys/class/gpio cpi@clockworkpi:/sys/class/gpio$ su root Password: root@clockworkpi:/sys/class/gpio# ls export gpiochip0 gpiochip352 unexport root@clockworkpi:/sys/class/gpio# echo N \> export root@clockworkpi:/sys/class/gpio# ls export gpioN gpiochip0 gpiochip352 unexport root@clockworkpi:/sys/class/gpio# cat gpioN/direction in root@clockworkpi:/sys/class/gpio# echo out \> gpioN/direction ba…

---

<div class="post-metadata">

**Author:** ![0x0c](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/0x0c/32/3515_2.png) [@0x0c](https://forum.clockworkpi.com/u/0x0c)\
**Post date:** [December 21, 2019, 3:44pm UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998/4 "2019-12-21T15:44:29Z")

</div>

Thanks but what is the relationship between gpiochip0 gpiochip352 and UART/I2C?

I’ve bought a digital-to-analog module(I2C based) to support sensors but unable to know how to make it works.

Happy to have more discuss.

---

<div class="post-metadata">

**Author:** ![p3dt](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@p3dt](https://forum.clockworkpi.com/u/p3dt)\
**Post date:** [December 27, 2019, 3:52pm UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998/5 "2019-12-27T15:52:50Z")

</div>

Please check my new topic regarding GPIOs and I2C:

> [@HowTo: GPIO access, I2C, Kernel Building](https://forum.clockworkpi.com/t/howto-gpio-access-i2c-kernel-building/5036):
>
> Hi, it’s Paul again wink Intro I found some time over the last days to play with the GPIOs and I2C. And got all of them to work, as well as I2C support: WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0. I will probe address range 0x03-0x77. Continue? [Y/n] 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- …

---

<div class="post-metadata">

**Author:** ![WangTingZheng](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/wangtingzheng/32/3546_2.png) [@WangTingZheng](https://forum.clockworkpi.com/u/WangTingZheng)\
**Post date:** [December 28, 2019, 4:13am UTC](https://forum.clockworkpi.com/t/about-14-pins-gpio-in-clockwork/4998/6 "2019-12-28T04:13:40Z")

</div>

oh! It’s very useful for me, thanks very much!!!
