Found some I2C code under the GNUlicence whic I am uploading here for reference