Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35a6a9c + 88273cd commit f17faeeCopy full SHA for f17faee
Adafruit_GPIO/SPI.py
@@ -108,15 +108,6 @@ def set_clock_hz(self, hz):
108
"""
109
self._device.frequency(hz)
110
111
- def set_mode(self,mode):
112
- """Set SPI mode which controls clock polarity and phase. Should be a
113
- numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning:
114
- http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
115
- """
116
- if mode < 0 or mode > 3:
117
- raise ValueError('Mode must be a value 0, 1, 2, or 3.')
118
- self._device.mode(mode)
119
-
120
def set_mode(self,mode):
121
"""Set SPI mode which controls clock polarity and phase. Should be a
122
numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning:
0 commit comments