Fixes #162 - adding SPI modes

Kind of ugly but should do the trick.

@Rocketmagnet needs to test it on hardware. Can someone help him to set things up if needed?