Firefly Open Source Community

Interface I2C device with AIO 3399J

173

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
173
Posted at 3/26/2018 13:27:12     
Hey, I am trying to interface MPU6050 and I2C-GPIO Expander(PCF8574) over i2c-4 of AIO 3399J.
And I have created an android application for MPU6050 using NDK.I am just using <linux/i2c-dev.h>(in my android application) to open the interface.But somehow I am not getting the bytes from the sensor.Do I need to write the drivers for MPU6050 separately or it should be fine?
Same for GPIO expander.
Reply

Use props Report

350

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
350
Posted at 3/29/2018 19:34:43     
SDK have already include mpu driver, but you need to enable its driver.
take a sample with kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-edp.dts
there is sensor config inside.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list