Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use I2C

1 byte added, 19:04, 16 January 2012
no edit summary
Constant FORCE is defined to allow this program access to I2c, although other programs use it at the same time. It can be dangerous in writing operations but in this case, read operations, have sense use it.<br>
Constant ADDRESS is defined to acces in specific I2C address, in . In DVI devices, 0x50 is default address, that means that other peripherals can be connected to same bus.
See the code below:<br>
}
} </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 it send value to Omap (Master). <br>
More information about [[Peripherals Summary#I2C|I2C]].<br>
4,199
edits