adafruit / Adafruit-Raspberry-Pi-Python-Code

Adafruit library code for Raspberry Pi
1.43k stars 686 forks source link

Using MCP230XX Library #130

Closed christophN closed 9 years ago

christophN commented 9 years ago

Hey,

I am trying to use the Adafruit_MCP230XX library in my project. I want to use the library and it's functions in my own python program. So i have for example my "main.py" and i want to use the functionalities of the MCP230XX Library in this. I have added "import Adafruit_MCP230XX" at the top of my file, but i am not able to use any of the functions.

Am i right i need to import the two classes which are created in the file. So do I need to go with: "from Adafruit_MCP230XX import Adafruit_MCP230XX" and "from Adafruit_MCP230XX import MCP230XX_GPIO" ? Any help or suggestions?

christophN commented 9 years ago

Sorry, I have figured it out. Thanks