Search found 1 match

by adrianalin
Mon Jul 28, 2014 9:54 pm
Forum: User Projects
Topic: Arduino I2Cdev & MPU-6050 code conversion to ChibiOS
Replies: 7
Views: 11859

Re: Arduino I2Cdev & MPU-6050 code conversion to ChibiOS

I could compile your code as well, and i could get raw data from MPU6050 using getRawAccelGyro. Here is my code:

bool_t init_i2c2(void)
{
println("Init I2C");

// I2C interface #2
i2cStart(&I2CD2, &i2cfg2);
palSetPadMode(GPIOB, 10, PAL_MODE_ALTERNATE(4) | PAL_STM32_OTYPE_OPENDRAIN); // I2C2 ...