void prvGRYO_Config(void) { uint8_t ctrl = 0; L3G4200D_InitTypeDef L3G4200D_InitStruct; L3G4200D_Init(&L3G4200D_InitStruct); }
///* int main(void) { char keyVal; static bool sw_adxl345 = true,sw_l3g4200d = true, sw_hmc5883l=true,sw_bmp085 =true; SystemInit(); USART3_Config(); I2C_config(); L3G4200D_Init(); printf("Initial successed!\n\r"); while(1) { // L3G4200D_MultRead(&l3g4200d); //讀陀螺儀數據(速度:較快) L3G4200D_Read(&l3g4200d); L3G4200D_Printf(&l3g4200d); Delayms(10); } }