Created 2022-11-06 Updated 2023-05-14
PICO_BOARD will be defined, which you can confirm in a source file:
#ifdef PICO_BOARD #pragma message "Compiling for Pico" #endif
Example code is available in projects:
Medium: Plugging a keyboard into an #RP2040
Gary Explains: Connect SD Card to Pico using SPI
Pico_1140: PDP11 emulator that will run Unix 5/6
Will Thomas: Baremetal Assembly Yourutbe channel