![Software Software](https://media.ncd.io/sites/2/20170721151843/BRIDGEX5_D_4.jpeg)
The USB-I2C module uses the FTDI FT232R USB chip to handle all the USB protocols. The documentation provided by FTDI is very complete, and is not duplicated here. Before using the USB-I2C, you will need to install FTDI's Virtual COM Port (VCP) Drivers. USB-I2C Test Software. FTDI's LibMPSSE-I2C and LibMPSSE-SPI libraries. Software Usage. To use I2C with the Adafruit Python GPIO library you'll need to create an AdafruitFT232.I2CDevice instance. This object takes as a parameter to its initializer the FT232H object that represents your FT232H chip, and the address of the I2C device to communicate with using the.
PermalinkJoin GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upBranch:master
Find file Copy path
Fetching contributors…
I2C implementation using FTDI FT4232H |
Written by: Ori Idan Helicon technologies ([email protected]) |
This software is a free software distributed under GPL version 3.0 or later. |
Refer to COPYING for the full text of the license. |
This code contains two command line utilities: i2csend and i2cget. |
The code is implemented using libftdi (free library for FTDI chips) |
This version supports only one F4232 chip connected to any USB port of your system. It will search for the first chip and initialize it. It was not tested on a system with more then one F4232 chips. |
Compiling: |
Before compling the code insure that libftdi development files are installed in your system. |
On a debian based system (debian, Ubuntu, Mint etc.) this is done by the command: sudo apt-get install libftdi-dev |
I did not try it on other deistributions but there should not be any problem. |
After extracting the files from the tarball, enter the directory where the files reside and execute make. |
This will compile both i2csend and i2cget. |
Using: |
In order to send bytes, use the i2csend with the address and bytes to send. |
For example: to send 0x07 0xaa 0x55 to address 0x20 use the command: i2csend 0x20 0x07 0xaa 0x55 |
In order to read bytes, use the i2cget with the address and number of bytes to read. |
For example: to read 2 bytes from address 0x20 use the command: i2cget 0x20 2 |
Note that both commands must be run as root. |
For consulting and support, contact Ori Idan at [email protected] |
Copy lines Copy permalink