# Pin 0 is showing current despite digital write 0 (P1,P2 works fine)

**URL:** https://forum.makecode.com/t/pin-0-is-showing-current-despite-digital-write-0-p1-p2-works-fine/13643
**Category:** micro:bit
**Created:** [May 18, 2022, 4:59pm UTC](https://forum.makecode.com/t/pin-0-is-showing-current-despite-digital-write-0-p1-p2-works-fine/13643 "2022-05-18T16:59:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mrhope](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@mrhope](https://forum.makecode.com/u/mrhope)
#### Post date: [May 18, 2022, 4:59pm UTC](https://forum.makecode.com/t/pin-0-is-showing-current-despite-digital-write-0-p1-p2-works-fine/13643/1 "2022-05-18T16:59:37Z")

</div>

Hi all,

I realized P0 seems to be very erractic when it comes to using it as a digital input/output.

I setup 3 LEDs connected to P0,P1 and P2.  
Then I did the switch digital 0-1 on each pin, P1 and P2 works correctly where LED would be completely off and on but P1 would show dim LED even when it’s digital write 0.

For some reason it continues to send current despite it been set to digital 0. Has anyone experienced the same issue? I believe it could be the nature of Pin 0, if I use pin 5 on a breakout board it works fine too.

I looked up this pin definition page, nothing much can be concluded based on that:  
[Microbit pins definition](https://makecode.microbit.org/device/pins)

Appreciate any insights in regarding to the above, thanks all!

Regards,  
Hope

---

<div class="post-metadata">

### Author: ![meowbitcat](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@meowbitcat](https://forum.makecode.com/u/meowbitcat)
#### Post date: [April 27, 2023, 4:53pm UTC](https://forum.makecode.com/t/pin-0-is-showing-current-despite-digital-write-0-p1-p2-works-fine/13643/2 "2023-04-27T16:53:51Z")

</div>

Did you include any audio as P0 is for audio?

---

<div class="post-metadata">

### Author: ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)
#### Post date: [May 2, 2023, 7:21am UTC](https://forum.makecode.com/t/pin-0-is-showing-current-despite-digital-write-0-p1-p2-works-fine/13643/3 "2023-05-02T07:21:51Z")

</div>

Have you tried "Led " tools and then “more” and then select ‘led enable : false’ block ? put it under “On start” ; Sometimes this stops voltage from the LED array from going to pins.
