Skip to content

Commit f29fbbc

Browse files
author
K. Townsend
committedDec 27, 2012
Fixed MCP23008 registers
1 parent f1cf300 commit f29fbbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Adafruit_MCP230xx/Adafruit_MCP230xx.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class Adafruit_MCP230XX(object):
4040
OUTPUT = 0
4141
INPUT = 1
4242

43-
def __init__(self, address, num_gpios, busnum = 0):
43+
def __init__(self, address, num_gpios):
4444
assert num_gpios >= 0 and num_gpios <= 16, "Number of GPIOs must be between 0 and 16"
45-
self.i2c = Adafruit_I2C(address=address, bus=smbus.SMBus(busnum))
45+
self.i2c = Adafruit_I2C(address=address)
4646
self.address = address
4747
self.num_gpios = num_gpios
4848

0 commit comments

Comments
 (0)
Please sign in to comment.