# digitalWrite on P3

**URL:** https://forum.makecode.com/t/digitalwrite-on-p3/23609
**Category:** micro:bit
**Created:** [October 23, 2023, 9:19pm UTC](https://forum.makecode.com/t/digitalwrite-on-p3/23609 "2023-10-23T21:19:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BionicNaren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bionicnaren/32/11376_2.png) [@BionicNaren](https://forum.makecode.com/u/BionicNaren)
#### Post date: [October 23, 2023, 9:19pm UTC](https://forum.makecode.com/t/digitalwrite-on-p3/23609/1 "2023-10-23T21:19:42Z")

</div>

I tried my best to do digitalWrite on P3 pin but not working at all. I am using Kittenbot iobit extension board.  
However, analogWrite is working fine on P3. I just need to write 1023 in my code to make it work.  
Can anybody tell me what I am doing wrong?

---

<div class="post-metadata">

### Author: ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)
#### Post date: [November 8, 2023, 5:52pm UTC](https://forum.makecode.com/t/digitalwrite-on-p3/23609/2 "2023-11-08T17:52:10Z")

</div>

Welcome, @BionicNaren!

Could you maybe share your code that is not working here?
