new function to set I2C pins from calling function