Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added note about Due init workaround

  • Loading branch information...
commit 9fbf203dceaa8335d39469b88dc187248548ed22 1 parent c2b9fd7
@kevin-pololu kevin-pololu authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  README.textile
View
1  README.textile
@@ -71,6 +71,7 @@ h2. Library Reference
- @vector g@ := The last values read from the gyro.
- @bool init(byte device, byte sa0)@ := Initializes the library with the device being used (L3G4200D or L3GD20) and the state of the SA0 (slave address least significant bit) pin. Constants for these arguments are defined in L3G.h. Both of these arguments are optional; if they are not specified, the library will try to automatically detect the device and slave address, and it will return a boolean indicating whether the autodetection was succesful.
+*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 state manually (e.g. @init(L3GD20_DEVICE, L3G_SA0_HIGH)@).
- @void enableDefault(void)@ := Turns on the gyro in the default configuration.
- @void writeReg(byte reg, byte value)@ := Writes a gyro register with the given value. Register address constants are defined in L3G.h.
- @byte readReg(byte reg)@ := Reads a gyro register and returns the value read.
Please sign in to comment.
Something went wrong with that request. Please try again.