Difference between revisions of "How to use I2C"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 11: Line 11:
 
= Check I2C Devices  =
 
= Check I2C Devices  =
  
By defaul, all Linux Kernel support I2C bus via i2c-dev driver
+
In this How-to i used pre-compiled modules, because: it's quick and it works. All versions of Linux are supported, as long as I2C support is included in the kernel.
 +
 
 +
To make sure that I2C driver works well, follow the next steps (tested in [http://releases.linaro.org/platform/linaro-m/headless/final/linaro-m-headless-tar-20101108-2.tar.gz Linaro Headless]):
 +
<pre>sudo apt-get install  i2c-tools
 +
i2cdetect -l</pre>
  
 
=Compile=
 
=Compile=

Revision as of 17:42, 16 January 2012

Overview

This How-To is meant to be a starting point for people to learn use I2C for IGEP v2 devices as quickly and easily as possible. For this how-to i do a program that reads and decodes EDID information from EEPROM display. This program was tested in Linaro Headless with Kernel 2.6.35.y and Poky Linux distribution.

More information about EDID.

Feedback and Contributing

At any point, if you see a mistake you can contribute to this How-To.

Check I2C Devices

In this How-to i used pre-compiled modules, because: it's quick and it works. All versions of Linux are supported, as long as I2C support is included in the kernel.

To make sure that I2C driver works well, follow the next steps (tested in Linaro Headless):

sudo apt-get install  i2c-tools
i2cdetect -l

Compile

Run program

Under construction