Python Forum
How to find I2C library in Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to find I2C library in Python (/thread-35197.html)



How to find I2C library in Python - Joni_Engr - Oct-08-2021

Hi,

I am looking for I2C library that I can use to read the data from I2C slave module using MCP2221. Does compatible library exist ?


RE: How to find I2C library in Python - Larz60+ - Oct-08-2021

You don't state who's MCP2221 board you are using, however:

AdaFruit sells a board with the Microchip MCP2221a product here: https://www.adafruit.com/product/4471

Installation of the driver is OS dependent, to learn how to do this, go to: https://learn.adafruit.com/circuitpython-libraries-on-any-computer-with-mcp2221
Read this page in it's entirety.

Run each of the steps under overview, selecting the links along the way that pertain to your OS.

You will need to install a driver for the !2C slave to operate.

Once the driver is installed, you can use the supplied python code to interface with the chip (Examples are provided).

In case you want more details on this chip, see:

Note: The MCP2221A is identical to the MCP2221 in all aspects except for the maximum supported baud rate of the UART, which has been increased from 115200 (MCP2221) to 460800 (MCP2221A). All MCP2221 USB Drivers and Software can be used for the MCP2221A.