add example for implementing SPI protocal in bonescript