changed to i2c and ios support

Change-Id: Ie9bd426dcb78c629badc4a9d958ee85bf77e67dd