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

Commit 19a6ef1

Browse files
committed
Fix software SPI driver initializer to define MOSI, MISO, SS pins as optional.
1 parent eed9159 commit 19a6ef1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adafruit_GPIO/SPI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def transfer(self, data):
9898
class BitBang(object):
9999
"""Software-based implementation of the SPI protocol over GPIO pins."""
100100

101-
def __init__(self, gpio, sclk, mosi, miso, ss):
101+
def __init__(self, gpio, sclk, mosi=None, miso=None, ss=None):
102102
"""Initialize bit bang (or software) based SPI. Must provide a BaseGPIO
103103
class, the SPI clock, and optionally MOSI, MISO, and SS (slave select)
104104
pin numbers. If MOSI is set to None then writes will be disabled and fail

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
requires.append('spidev')
1212

1313
setup(name = 'Adafruit_GPIO',
14-
version = '0.8.1',
14+
version = '0.9.0',
1515
author = 'Tony DiCola',
1616
author_email = 'tdicola@adafruit.com',
1717
description = 'Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.',

0 commit comments

Comments
 (0)