Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit 88273cd

Browse files
committedJul 11, 2017
duplicate function
1 parent 060f6d6 commit 88273cd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed
 

‎Adafruit_GPIO/SPI.py

-9
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,6 @@ def set_clock_hz(self, hz):
107107
"""
108108
self._device.frequency(hz)
109109

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-
119110
def set_mode(self,mode):
120111
"""Set SPI mode which controls clock polarity and phase. Should be a
121112
numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning:

0 commit comments

Comments
 (0)
This repository has been archived.