simplify bitbanged spi protocol implementation