Raspberry Pi Pico pin25(LED)

Discuss PC Developer and Web Developer projects and features here.
Post Reply
KikeRico
Posts: 21
http://meble-kuchenne.info.pl
Joined: Wed Aug 10, 2022 1:42 am
Location: Mexico
Has thanked: 2 times
Been thanked: 7 times

Flowcode v10 Raspberry Pi Pico pin25(LED)

Post by KikeRico »

Hi,

I'm triying to develop a program with Raspberry Pi Pico. My first intention is to use the integrated LED in the Pico, and in the datasheet that LED is connected to Pico's pin 25. It sound easy, but in fact I can´t find that pin in the target in flowcode! :o
Raspberry Pi Pico pin25.PNG
Raspberry Pi Pico pin25.PNG (12.76 KiB) Viewed 2585 times
Please somebody give and advice How I can use the Pico LED?

Thanks for your help.

KikeRico
Posts: 21
Joined: Wed Aug 10, 2022 1:42 am
Location: Mexico
Has thanked: 2 times
Been thanked: 7 times

Re: Raspberry Pi Pico pin25(LED)

Post by KikeRico »

Sorry in fact LED is attached to GP25, not phisical pin 25 :D
GP25_LED.PNG
GP25_LED.PNG (114.3 KiB) Viewed 2583 times

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 284 times
Been thanked: 412 times

Re: Raspberry Pi Pico pin25(LED)

Post by chipfryer27 »

Hi

The pin is available if you use the RP2020 target instead of Pico. However you can still access the LED as per this post from Leigh. The post is about using both cores but also explains how to access the LED using a calculation.

viewtopic.php?f=3&t=2065&p=12406&hilit=pico#p12406

Regards

KikeRico
Posts: 21
Joined: Wed Aug 10, 2022 1:42 am
Location: Mexico
Has thanked: 2 times
Been thanked: 7 times

Re: Raspberry Pi Pico pin25(LED)

Post by KikeRico »

Hi chipfryer24,

I have tried the Leigh solution about GP25, but unsuccesfully :-(
PORTA pin error.PNG
PORTA pin error.PNG (22.55 KiB) Viewed 2573 times
On onther hand for RPI-2040 the pin GP25 is present, as you mentionend. But unfortunaly I don't have activate that chip.

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 284 times
Been thanked: 412 times

Re: Raspberry Pi Pico pin25(LED)

Post by chipfryer27 »

Hi

I'll check Leigh's code tomorrow, and I did get it to work on my Pico. Just as an FYI you can pretty much use the RP2040 chip component instead of the Pico as most features are compatible.

Regards

Post Reply