duplicate function
This commit is contained in:
parent
060f6d6782
commit
88273cd27a
1 changed files with 0 additions and 9 deletions
|
|
@ -116,15 +116,6 @@ class SpiDevMraa(object):
|
||||||
raise ValueError('Mode must be a value 0, 1, 2, or 3.')
|
raise ValueError('Mode must be a value 0, 1, 2, or 3.')
|
||||||
self._device.mode(mode)
|
self._device.mode(mode)
|
||||||
|
|
||||||
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_bit_order(self, order):
|
def set_bit_order(self, order):
|
||||||
"""Set order of bits to be read/written over serial lines. Should be
|
"""Set order of bits to be read/written over serial lines. Should be
|
||||||
either MSBFIRST for most-significant first, or LSBFIRST for
|
either MSBFIRST for most-significant first, or LSBFIRST for
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue