# Blinky example for RP pico W does not work

**URL:** <https://forum.embeetle.com/t/blinky-example-for-rp-pico-w-does-not-work/868>\
**Category:** Uncategorized\
**Created:** [January 26, 2024, 7:09pm UTC](https://forum.embeetle.com/t/blinky-example-for-rp-pico-w-does-not-work/868 "2024-01-26T19:09:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cleidir](https://forum.embeetle.com/user_avatar/forum.embeetle.com/cleidir/32/1137_2.png) [@Cleidir](https://forum.embeetle.com/u/Cleidir)\
**Post date:** [January 26, 2024, 7:09pm UTC](https://forum.embeetle.com/t/blinky-example-for-rp-pico-w-does-not-work/868/1 "2024-01-26T19:09:20Z")

</div>

Hi guys,

I come here to present a problem I had with the example project for the Raspberry Pi pico microcontroller. Using a PICO W as Target I noticed that the board’s LED did not blink, however when I used the PICO without W the LED blinked.  
After some research I noticed that on the pico W board the pin that is connected to the LED is not the same but a pin on the chip responsible for Wi-Fi.

Below is the modification I made to use an external LED, I changed it from pin 25 to pin 22.

void main(void)  
{  
RESETS-\>RESET = RESETS-\>RESET & ~0x00000020lu; // take IO\_BANK0 out of Reset  
PSM-\>FRCE\_ON = PSM-\>FRCE\_ON | 0x00000400; // make sure that SIO is powered on  
SIO-\>GPIO\_OE\_CLR = 1ul \<\< 22;  
SIO-\>GPIO\_OUT\_CLR = 1ul \<\< 22;  
PADS\_BANK0-\>GPIO22 = 0x00000030;  
IO\_BANK0-\>GPIO22\_CTRL = 5;  
SIO-\>GPIO\_OE\_SET = 1ul \<\< 22;  
init\_time();

```
for (;;) {
    // uint8_t data = 23;
    SIO->GPIO_OUT_SET = 1 << 22;
    // Delay
    delay_us((10 / 1 * 60) * 1000);
    SIO->GPIO_OUT_CLR = 1 << 22;
    // Delay
    delay_us((10 / 1 * (100 - 60)) * 1000);
}

```

}

---

<div class="post-metadata">

**Author:** ![matkuki](https://forum.embeetle.com/user_avatar/forum.embeetle.com/matkuki/32/52_2.png) [@matkuki](https://forum.embeetle.com/u/matkuki)\
**Post date:** [January 26, 2024, 10:52pm UTC](https://forum.embeetle.com/t/blinky-example-for-rp-pico-w-does-not-work/868/2 "2024-01-26T22:52:55Z")

</div>

Hi @Cleidir

Welcome to the forum and thanks for the code upgrade for the PICO W 👍  
I don’t have a PICO W to test, but we’ll add your code into a new example project as soon as we can.

Thanks again,  
Matic
