Permalink
Browse files

added note about Due & autodetection

  • Loading branch information...
1 parent da8f00d commit 2713b5ce2e72397b3aed9c98715f9b8a7aabeacd @kevin-pololu kevin-pololu committed Apr 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 README.textile
View
@@ -72,6 +72,7 @@ h2. Library Reference
- @LSM303(void)@ := Constructor; initializes @m_min@ and @m_max@ with placeholder values.
- @void init(byte device, byte sa0_a)@ := Initializes the library with the device being used (LSM303DLH, LSM303DLM, or LSM303DLHC) and the state of the SA0_A (accelerometer slave address least significant bit) pin. Constants for these arguments are defined in LSM303.h. Both of these arguments are optional; if they are not specified, the library will try to automatically detect the device and accelerometer address. However, the automatic detection might fail if you do not use the Pololu boards' default accelerometer address, so you should specify your particular device if you change the state of the SA0_A pin.
+*Note:* Automatic detection of the device type currently does not work with the Arduino Due because of issues with its Wire library. To work around this, specify the device and SA0_A state manually (e.g. @init(LSM303DLM_DEVICE, LSM303_SA0_A_HIGH)@).
- @byte getDeviceType(void)@ := Returns the device type detected by @init()@.
- @void enableDefault(void)@ := Turns on the accelerometer and magnetometer in the default configuration. (This function was previously called @enable()@.)
- @void writeAccReg(byte reg, byte value)@ := Writes an accelerometer register with the given value. Register address constants are defined in LSM303.h.

0 comments on commit 2713b5c

Please sign in to comment.