added wifi accel mag i2c code