Hello,
In my current project I like the same code to be able to run on the Pico and the PicoW without having to recompile it. This works fine so far as it is not using any specific PicoW-only functionality yet. The only problem is the LED. I would like to detect in software that the code is running on a PicoW or if it is running on a Pico so that I can address the LED in the correct way for the board.
So far I have tried the cyw43_arch_init() and cyw43_arch_init_with_country() functions, but they always return 0, regardless of the board the code is running on.
Does anybody here know a reliable method I can use?
In my current project I like the same code to be able to run on the Pico and the PicoW without having to recompile it. This works fine so far as it is not using any specific PicoW-only functionality yet. The only problem is the LED. I would like to detect in software that the code is running on a PicoW or if it is running on a Pico so that I can address the LED in the correct way for the board.
So far I have tried the cyw43_arch_init() and cyw43_arch_init_with_country() functions, but they always return 0, regardless of the board the code is running on.
Does anybody here know a reliable method I can use?
Statistics: Posted by Edders — Thu Apr 17, 2025 2:00 pm — Replies 1 — Views 70