I2C Alternative Library
(download and install it before using LSM303_I2C, i used rev5)
and based on
with the same methods.
I want to share a simple accelerator an compass library with direct i2c access as described in I2C alternative library linked here
it run smoothly on arduino yun and uno at high acquisition rate with pololu imu01b 9DOF sensors.
Contact me directly for issues on other configurations (sensors/boards)!
Rev1: added support to (Drotek IMU>
) forcing address in init function init(LSM303_I2C::device_DLH,LSM303_I2C::sa0_low),
probably this run with other IMU (with others address) and correct some bugs (reading registry principally)
Rev2: added waiting into read