Python Forum
How to find I2C library in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find I2C library in Python
#1
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 ?
Reply
#2
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...th-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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python can't find a library which is definitely there! Pedroski55 1 9,692 Mar-26-2021, 11:44 PM
Last Post: snippsat
  ImportError: Can not find the shared library: libhdfs3.so aupres 1 4,048 Oct-18-2020, 06:57 AM
Last Post: bowlofred
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,799 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020