Jump to content

Recommended Posts

MCP2221A library

There it is.

The complete library for the MCP2221A. I2c adapter, I/O in a single IC. I love that one.

Let me know if any bug is found.

I try to make that library as much convenient as possible to use. Two version available 32 bit and 64 bit. little note: to open by serial number, the enumeration need to be activated on the device first. (open by index, enable the enumeration) It needs to be done only once in the life time of the device.

PLEASE do not take ownership of this work since it is not yours. You have it for free, but the credit is still mine... I spent many hours of my life to make it works.

  • Submitter
  • Submitted
  • Category
  • LabVIEW Version
  • License Type
    BSD (Most common)


Share this post

Link to post
Share on other sites

Hi Benoit,

I have downloaded this package and it looks like you've put a lot of work into it! But, I can't use the VIs on the older version of LabVIEW, which is all I currently have available. Please could you provide a version compatible with LabVIEW 2015?

It would be very much appreciated.

All the best,


Share this post

Link to post
Share on other sites

Hello Benoit,

This library is very useful. I'm really appreciate your work.

By the way, there seems to be a bug in "Mcp2221 Set Gpio Values.vi".
The image is attached.





Share this post

Link to post
Share on other sites

Apparently @Benoit does not have access to LabVIEW anymore. At least until the Community Edition is released...


I took the liberty of backsaving to LV 2013 and correcting the *char GpioValues bit representation as described in the programmer manual. (Only for 32-bit library)

Microchip MCP2221A_x86 (2013).zip


*Please note that I have never used this library and have no way of testing whether the 2013 version works.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.