Merging i2c-sensor code with SPI SD-card code