### Subject of the issue Compile generates an error when SPI_INTERFACES_COUNT 0 ### Your workbench Custom variants.h has no SPI ports defined. ### Steps to reproduce Edit variants.h: // SPI Interfaces // -------------- #define SPI_INTERFACES_COUNT 0 ### Expected behaviour Code compiles with SPI disabled ### Actual behaviour Sketch does not compile. error: 'SPI' was not declared in this scope ICM_20948_Status_e begin( uint8_t csPin, SPIClass &spiPort = SPI );