def set_mode(self, mode):
        if mode < 0 or mode > 3:
            raise ValueError('Mode must be a value 0, 1, 2, or 3.')
        self._device.mode = mode
Set SPI mode which controls clock polarity and phase.  Should be a
dataset/ETHPy150Open adafruit/Adafruit_Python_GPIO/Adafruit_GPIO/SPI.py/SpiDev.set_mode