11-28-2014 06:12 PM
I would need to read data from both accelerometer and gyroscope using LSM6DS0 IC.
I am going to connect my IC board to an Arduino Uno using I2C.
I would need some recomendation on LIFA file.
Do I need to create a library (header file) and used that library in my sketch file(cpp)?
if I am going to use LIFA, do I just add more code to the LIFA_BASE.
Please help me.
Thanks
11-29-2014 03:00 AM
If the sensor uses I2C, you don't need to change any code in LIFA_Base.ino or any other Arduino sketch code. Simply use the LIFA I2C functions like I've done with the MPU-6050.
12-01-2014 12:00 PM
if I am only using these three functions, I would not need to add any extra library.
do I have only upload the Lifa_base?
Thanks,
I
12-01-2014 12:27 PM
Yes, I2C is supported by LIFA.
12-01-2014 12:29 PM
Thanks nathan.
12-01-2014 02:20 PM
By saying that, I just need to add some comment in setup & void loop of the LIFA_BASE.ino file.
I mean some initialization and some comments for these raed write registers.
12-01-2014 06:10 PM
You shouldn't need to add or change anything in the LIFA firmware if you are using I2C devices via LIFA.