working see comments in spiWrite() and setWriteEnable()