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

Commit f17faee

Browse files
authored
Merge pull request #71 from lsellens/master
duplicate function
2 parents 35a6a9c + 88273cd commit f17faee

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
@@ -108,15 +108,6 @@ def set_clock_hz(self, hz):
108108
"""
109109
self._device.frequency(hz)
110110

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

0 commit comments

Comments
 (0)