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.
1 parent 060f6d6 commit 88273cdCopy full SHA for 88273cd
Adafruit_GPIO/SPI.py
@@ -107,15 +107,6 @@ def set_clock_hz(self, hz):
107
"""
108
self._device.frequency(hz)
109
110
- def set_mode(self,mode):
111
- """Set SPI mode which controls clock polarity and phase. Should be a
112
- numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning:
113
- http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
114
- """
115
- if mode < 0 or mode > 3:
116
- raise ValueError('Mode must be a value 0, 1, 2, or 3.')
117
- self._device.mode(mode)
118
-
119
def set_mode(self,mode):
120
"""Set SPI mode which controls clock polarity and phase. Should be a
121
numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning:
0 commit comments