duplicate function

This commit is contained in:
lsellens 2017-07-11 07:23:24 -05:00
parent 060f6d6782
commit 88273cd27a

View file

@ -107,15 +107,6 @@ class SpiDevMraa(object):
""" """
self._device.frequency(hz) self._device.frequency(hz)
def set_mode(self,mode):
"""Set SPI mode which controls clock polarity and phase. Should be a
numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning:
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
"""
if mode < 0 or mode > 3:
raise ValueError('Mode must be a value 0, 1, 2, or 3.')
self._device.mode(mode)
def set_mode(self,mode): def set_mode(self,mode):
"""Set SPI mode which controls clock polarity and phase. Should be a """Set SPI mode which controls clock polarity and phase. Should be a
numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning: numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning: