I want to configure I2C for raspberry pi using PYTHON or last choice C. I have worked on ATMEL micro controller, it provide I2C communication with any device. I want some similar mechanism for raspberry pi. I have following questions:
1. We have to define address of every device in I2C bus. If i want to send some data from ATMEL micro controller to raspberry pi (write data to raspberry pi), what will be the address of raspberry pi or how we can set the address.
2. Is there any interrupt or something like that if we receive some data on I2C bus?
3. Which library will be best for PYTHON or C?
4. Can i write my custom codes for implementing I2C protocol?
Please help.... Thanks in advance..