Simultaneous SPI and I2C communication

Please post you complete code and not just snippets. Also, please use the code tags

 code tag

This will very much improve the codes readability on the forum.