Separated SPI and PWM into separate files for ease of modification