Quantcast
Viewing all articles
Browse latest Browse all 5393

SDK • Re: Pico SDK compilation question re placement of preprocessor directives

This version will fail to compile if the required macros are not defined. I tend to prefer this version. Not much point in creating an executable if it is known that it will not run.
Yup; the reason the pico-examples do a compile time warning, is we don't want to fail the build (of all examples) if you a re building for a PICO_BOARD which doesn't have I2C

Statistics: Posted by kilograham — Sun Feb 04, 2024 12:42 am



Viewing all articles
Browse latest Browse all 5393

Trending Articles