Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Interface I2C device with AIO 3399J

240

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
240

Interface I2C device with AIO 3399J

Posted at 3/26/2018 13:27:12      View:3415 | Replies:1        Print      Only Author   [Copy Link] 1#
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

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 3/29/2018 19:34:43        Only Author  2#
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