# V2 Speaker and GPIO 0?

**URL:** <https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386>\
**Category:** micro:bit\
**Created:** [October 12, 2021, 8:02pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386 "2021-10-12T20:02:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrHM](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MrHM](https://forum.makecode.com/u/MrHM)\
**Post date:** [October 12, 2021, 8:02pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/1 "2021-10-12T20:02:57Z")

</div>

Hello,

When using sound on V2, I am surprised that pin 0 is still getting signal. Is there anyway to disable sound going to pin 0, or is the new speaker on V2 still pin 0?

Students discovered this when an LED plugged into 0 lit up when music played on internal speaker. Doesn’t matter if Play Tone or Play Sound. LED plugged into 0 lights up ;-(  
The SetBuiltInSpeaker doesn’t make a difference either way.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/94d3b8a4d4294eecaa14e7e250da006b6f05ad34.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [October 13, 2021, 10:23pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/2 "2021-10-13T22:23:09Z")

</div>

The nRF processor’s P0.00 is the speaker pin. See: [https://tech.microbit.org/hardware/schematic/#v2-pinmap](https://tech.microbit.org/hardware/schematic/#v2-pinmap) (so it is one and the same).

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [October 13, 2021, 10:24pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/3 "2021-10-13T22:24:07Z")

</div>

Hi

Don’t think you can disable the audio output pin but you can select a different pin for audio output , the speaker on the V2 will just play what you send to this pin …

Have a look here …

> **[set Audio Pin](https://makecode.microbit.org/reference/pins/set-audio-pin)**
>
> Set the pin (P0, P1, P2) that is used to play music and generate tones.

Hope this help

TTFN

J

---

<div class="post-metadata">

**Author:** ![MrHM](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MrHM](https://forum.makecode.com/u/MrHM)\
**Post date:** [October 15, 2021, 6:04pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/4 "2021-10-15T18:04:52Z")

</div>

Thanks for the help! Was hopeful they could release the pin given the built-in speaker

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [October 18, 2021, 4:33pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/5 "2021-10-18T16:33:42Z")

</div>

No Problem…

what sort of project are you planning & what number of pins / pin numbers do you envisage using?

If you have just the Micro:Bit then you only have easy access to P0,P1,p2. 3v & GND.

If you need more pins then there are several edge connector adaptors that allow easy access to the full range of pins on the Micro:Bit…

A couple of examples … several others are available

> **[pin:bit – Pimoroni](https://shop.pimoroni.com/products/pin-bit)**
>
> pin:bit breaks out all of the useful pins from your micro:bit into breadboard format while providing handy-dandy labels to make your builds go smoothly.

> **[Kitronik Edge Connector Breakout Board for BBC micro:bit - Pre-built](https://kitronik.co.uk/products/5601b-edge-connector-breakout-board-for-bbc-microbit-pre-built)**
>
> This pre-built Edge Connector Breakout Board for the BBC micro:bit gives access to all the important pins on the bottom edge of the BBC micro:bit. The pins a broken out to standard pin headers which are ideal to connect to using standard female...

TTFN

J

---

<div class="post-metadata">

**Author:** ![MrHM](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MrHM](https://forum.makecode.com/u/MrHM)\
**Post date:** [October 19, 2021, 4:13pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/6 "2021-10-19T16:13:46Z")

</div>

Yes, we already use the breakout from Sparkfun. We are hooking up a Joystick (4 pins), 2 concave buttons, and some LEDs. Cool little remote control to control the Micro:bot, also from Sparkfun. Just a shame to have 0 be useless when a perfectly good speaker is already connected. We are now taking over the A and B button pins to make it all work.

Thank you for sharing your knowledge!

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [July 17, 2023, 4:57pm UTC](https://forum.makecode.com/t/v2-speaker-and-gpio-0/10386/7 "2023-07-17T16:57:57Z")

</div>

Quick update, I had a clash with the micro:bit V2 vs [4tronix Cube:Bit](https://4tronix.co.uk/blog/?p=1770) which has its WS2812 RGB LEDs hanging off pin0. It probably appeared after this discussion, micro:bit MakeCode has a `set audio pin enabled` with boolean value now under `Advanced > Pins`. I can’t find the docs for that…
