NAME

Device::LSM303DLHC::Compass - I2C interface to Compass on the LSM303DLHC 3 axis magnetometer(compass) and accelerometer using Device::SMBus

VERSION

version 0.004

METHODS

enable

$self->enable()

Initializes the device, Call this before you start using the device. This function sets up the appropriate default registers. The Device will not work properly unless you call this function

getRawReading

$self->getRawReading()

Return raw readings from accelerometer registers

getReading

$self->getReading()

Return proper calculated readings from the magnetometer

AUTHOR

Shantanu Bhadoria <shantanu at cpan dott org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Shantanu Bhadoria.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.