There is no direct method in the C SDK that can be called to allow software to discover whether it is running on a Raspberry Pi Pico or a Pico W. However, it is possible to indirectly discover the type of underlying hardware. If the board is powered via USB or
VSYS, so3v3_ENis not pulled low externally, with GPIO25 low, ADC3 will be around 0V for Raspberry Pi Pico W and approximately 1/3 ofVSYSfor Raspberry Pi Pico.
what the fuck
edit: okay the good news is that there's an actual design reason for this, so you can depend on it
