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

The argument order for Adafruit_MCP230XX constructor in MCP230XX_GPIO does not match prototype #30

Closed
0x8000-0000 opened this issue Mar 28, 2013 · 1 comment

Comments

@0x8000-0000
Copy link

The constructor for Adafruit_MCP230XX has the following signature:

def init(self, address, num_gpios=8, busnum=-1, debug=False)

but it is invoked from MCP230XX_GPIO's constructor like this:

def init(self, busnum, address, num_gpios):
self.chip = Adafruit_MCP230XX(busnum, address, num_gpios)

@tdicola
Copy link
Contributor

tdicola commented Jul 15, 2014

Thanks for raising the issue and apologies it took so long to be reviewed. I just submitted a fix for the argument order so this should be resolved, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants