Has anyone an example of actual working 'C' code to write to the I2C port on the Raspi. I have built my hardware and can set/clear GPIO bits , pwm etc but could do with some help in sending and receiving data to/from I2C devices. I am new to 'C' (and cant do Python yet). As I am portng an exiting Java app I am actually using Java with JNI to access hardware using a hacked version of the WiringPi code. All help gratefully received.