unsigned char acce_active[1] = {0x01};
unsigned char data_r[6];
int data_x, data_y, data_z;
i2c_init(0x1C);
i2c_write(0x2A,1,acce_active);
while(1){
i2c_read(0x01,6,data_r);
data_x = ((data_r[0]<<8)|data_r[1])>>4;
data_y = ((data_r[2]<<8)|data_r[3])>>4;
data_z = ((data_r[4]<<8)|data_r[5])>>4...