# Possible pin conflict with touchphat and phat beat boards with SPI pins?

**URL:** <https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965>\
**Category:** Support\
**Created:** [January 19, 2018, 3:56pm UTC](https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965 "2018-01-19T15:56:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![craver2000](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@craver2000](https://forums.pimoroni.com/u/craver2000)\
**Post date:** [January 19, 2018, 3:56pm UTC](https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965/1 "2018-01-19T15:56:22Z")

</div>

Hi, can I check what connections are used for phat beat and touchphat? The reason is because I am using these two phat boards in my project. However, I recently tried to install an OLED display (with the Luma OLED python library) which uses SPI connections and the display appears to be unstable when I try to run a demo script.  
I also recieved this warning on terminal when I run the script:

```
/usr/local/lib/python2.7/dist-packages/luma/core/interface/serial.py:164: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
  self._gpio.setup(pin, self._gpio.OUT)

```

This led me to think that perhaps one of the boards could be using any of these pins, however I am not completely sure.  
Is there any chance that the phat boards uses any of the following pins: GIPO pin 24, GPIO pin 25, MOSI, CLK, CE0?

If they do conflict, are there alternate connections I can use for SPI?

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 19, 2018, 5:37pm UTC](https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965/2 "2018-01-19T17:37:31Z")

</div>

This should help, [https://pinout.xyz/#](https://pinout.xyz/#)  
Or even here, [https://pinout.xyz/phatstack](https://pinout.xyz/phatstack)

You don’t have to have a pHat Stack to use the second one. Just select your two pHats and see what it says. It showed they were OK for me.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 19, 2018, 5:45pm UTC](https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965/3 "2018-01-19T17:45:29Z")

</div>

The touch pHat only uses i2c  
The pHat beat doesn’t use SPI, but does use quit a few pins. that may be the one causing your issue. You need to know what the pins used by OLED display are.

The pHat Beat uses, GPIO 18 (Clock), not sure if that’s the CLK your referring to, though? .

---

<div class="post-metadata">

**Author:** ![craver2000](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@craver2000](https://forums.pimoroni.com/u/craver2000)\
**Post date:** [January 20, 2018, 1:36am UTC](https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965/4 "2018-01-20T01:36:59Z")

</div>

Thanks alphanumeric. Probably shouldnt be any conflict then. The CLK pin the OLED uses is GPIO 11.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 20, 2018, 9:53am UTC](https://forums.pimoroni.com/t/possible-pin-conflict-with-touchphat-and-phat-beat-boards-with-spi-pins/6965/5 "2018-01-20T09:53:58Z")

</div>

It gets tricky, the more devices you add, especially if they don’t use i2c. The PIN numbering can get you too.  
GPIO (Board) uses the actual PIN numbers while GPIO (BCM) uses the GPIO number.  
GPIO 11 (BCM) is physical Pin 23 (Board) on the GPIO header. Luckily, I hardly ever see GPIO (Board) used in any Python examples. If you see `GPIO.setmode(GPIO.BCM)` you know its using GPIO numbers not the physical actual PIN numbers. Hope I’m not confusing you more.
