SourceCode for a PIC16F1936 Microcontroller. I have connected a ledstrip with WS2801 controller to SPI and a RN171 wlaninterface to UART.