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?
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?