Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7327

SDK • Re: In code detect if running on Pico or PicoW

$
0
0
Many thanks for the answers.

I had hoped there was some kind of SDK function I could use. I found it surprising that initialising the CYW43 does not yield an error return when there is no such device on the board.

The one thing I did find out is that when using cyw43_arch_gpio_put() on a Pico without WiFi there are a lot of error messages on the debug output. Unfortunately the function does not return a value to indicate error or success. I'll see if I can dig a bit deeper there.

Thank you hippy for sharing your code - if I don't find anything else then I'll use that. If I do find something else then I'll post it here.

Statistics: Posted by Edders — Tue Apr 22, 2025 4:32 pm



Viewing all articles
Browse latest Browse all 7327

Trending Articles