# Possible Change Phat Dac GPIO pins to allow Adafruit PITFT 3.5?

**URL:** <https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360>\
**Category:** Projects\
**Created:** [May 13, 2016, 8:41pm UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360 "2016-05-13T20:41:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nic579](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nic579](https://forums.pimoroni.com/u/nic579)\
**Post date:** [May 13, 2016, 8:41pm UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360/1 "2016-05-13T20:41:45Z")

</div>

Hi all I have a PI2B V1.1 with the PITFT 3.5 which uses the GPIO18 what I am curious as to is if I an change pinout used on the PI to make it possible to run the PHAT DAC with this TFT for my currently running MPD and PianoBar console?  
**Can I just switch GPIO 18 to another pwm0 or pwm1 location?**

My software:[PiGuiPiano](https://github.com/ErnieBoxer/PiGuiPiano)

LCD diagram: [TFT3.5](https://cdn-learn.adafruit.com/assets/assets/000/026/348/original/adafruit_products_pitftplusch.png?1436454821)

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [May 13, 2016, 9:12pm UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360/2 "2016-05-13T21:12:58Z")

</div>

It sounds like your software wouldn’t particularly benefit from refined control of the PITFT backlight, so why not use the STMPE method? as I understand it will override the PWM output.

Other than that, both the pHAT DAC and PITFT use device tree overlays and while I’m not qualified to say for sure whether it would be impossible to modify them to redirect their function elsewhere, I’d say you’d be in for a treat.

Don’t let that put you off, but I thought it was worth noting that I _think_ there might be an easier route, as long as you are happy with the compromise.

---

<div class="post-metadata">

**Author:** ![nic579](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nic579](https://forums.pimoroni.com/u/nic579)\
**Post date:** [May 13, 2016, 9:32pm UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360/3 "2016-05-13T21:32:53Z")

</div>

Actually I think that is the STMP method in use to turn on and off the light. I would have to backtrack and see now. It’s been some time since I wrote all this and set it up.  
But than I would have to break that connection to the TFT “I suspect” as the PWM to the PHAT DAC would be sent to the LCD?

Thanks .

---

<div class="post-metadata">

**Author:** ![nic579](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nic579](https://forums.pimoroni.com/u/nic579)\
**Post date:** [May 14, 2016, 1:11am UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360/4 "2016-05-14T01:11:39Z")

</div>

Works for sound without the disconnect of GPIO18 from the TFT but I get an error from any touch interaction might be my interaction sound from pygame though have to dig some.

---

<div class="post-metadata">

**Author:** ![nic579](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nic579](https://forums.pimoroni.com/u/nic579)\
**Post date:** [May 14, 2016, 1:18am UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360/5 "2016-05-14T01:18:10Z")

</div>

Yes it is something to do with the pygame sound?

```
    def on_touch():
        #effect = pygame.mixer.Sound('beep2.ogg')
        #effect.play()
```

---

<div class="post-metadata">

**Author:** ![nic579](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nic579](https://forums.pimoroni.com/u/nic579)\
**Post date:** [May 14, 2016, 2:17am UTC](https://forums.pimoroni.com/t/possible-change-phat-dac-gpio-pins-to-allow-adafruit-pitft-3-5/2360/6 "2016-05-14T02:17:08Z")

</div>

Seems the real issue is that I cannot get full duplex sound.

Or DAC will only play from on source. ie: PianoBar attaches to the DAC on boot and no other sources can connect.
