using a mutex to prevent main loop from preempting interrupt thread, increased to 8MHz SPI