simondlevy / USFS

Cross-platform libraries for the EM7180 Ultimate Sensor Fusion Solution
GNU General Public License v3.0
30 stars 11 forks source link

raspberry M24512DFMwriteBytes and M24512DFMreadBytes #14

Closed samuelgirardin closed 5 years ago

samuelgirardin commented 5 years ago

Hello Simon,

I'm working on a raspberry pi EM7180 /LSM6 GUI, based on your code EM7180/wiringPI. The best way for me to try to understand how all of this work. I can't achieve to write accelerometer calibration data to the EEPROM. So I'm wondering if there is a a way with wiringpi to have something similar to this method :

static void M24512DFMwriteBytes(uint8_t device_address, uint8_t data_address1, uint8_t data_address2, uint8_t count, uint8_t * dest) and M24512DFMreadBytes(...)

(found in WarmStartAccCal.ino) working with wiringpi ? Maybe you can pointed me out something I missed. I'm not really familiar with this kind of dev. Anyway thanks a lot for all your dev about PI/EM7180. It helped me a lot.
EM7180 png gui preview. sam.

samuelgirardin commented 5 years ago

Found, I use <linux/i2c-dev.h> lib to read and write to the M24512.

LaurentDelaon commented 4 years ago

Hi samuel,

I have the same pb. I want to calibrate em7180 on tx2... How did you do it ? Could you send me your code please ? thank's. Laurent.