Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use I2C

7 bytes added, 18:54, 16 January 2012
no edit summary
Constant ADDRESS is defined to acces in specific I2C address, in DVI devices 0x50 is default address, that means that same bus can be connected with more peripherals.
See the code below:<br>
<pre>for (i=0;i&lt;=255;i++)
{
}
} </pre>
The program uses i2c_smbus_read_byte_data to get information from display, "i" variable is the EEPROM address, EEPROM (Slave) reads address and after EEPROM send value to Omap (Master).
More information about [[Peripherals_SummaryPeripherals Summary#I2C|I2C]].
<br> <br>
4,199
edits