Are SPI or I2C timer interrupt based protocols?

even when it is connected to a hardware supported pins for serial communication.

Serial communication relies on interrupts.

I don't know how SPI or I2C work, will it mess up the rest of my code?

Almost certainly. Especially lines 28 to 45. Or so my crystal ball says.