Since | Origin / Contributor | Maintainer | Source |
---|---|---|---|
2015-04-09 | Jason Schmidlapp | Jason Schmidlapp | l3g4200d.c |
This module provides access to the L3G4200D three axis digital gyroscope.
Samples the sensor and returns the gyroscope output.
l3g4200d.read()
X,Y,Z gyroscope output
l3g4200d.init(1, 2)
local x,y,z = l3g4200d.read()
print(string.format("X = %d, Y = %d, Z = %d", x, y, z)
Initializes the module and sets the pin configuration.
l3g4200d.init(sda, scl)
sda
data pinscl
clock pinnil