Refactor the BME280 driver: split the existing driver into communication and utility (task / procedural) layers, where the comm layer can be either I²C or SPI.
Implement the SPI communicaton layer for BME280: put the generic SPI part into spi.h, spi.c and the BME280-specific part into bme280spi.h, bme280spi.c.
Create 1spibme280 example. (And move the existing example 1bme280 into 1i2cbme280.)
Refactor the BME280 driver: split the existing driver into communication and utility (task / procedural) layers, where the comm layer can be either I²C or SPI.
Implement the SPI communicaton layer for BME280: put the generic SPI part into
spi.h,spi.cand the BME280-specific part intobme280spi.h,bme280spi.c.Create
1spibme280example. (And move the existing example1bme280into1i2cbme280.)