Device::LSM303DLHC - I2C interface to LSM303DLHC 3 axis magnetometer(compass) and accelerometer using Device::SMBus
version 0.009
this is the device file path for your I2CBus that the LSM303DLHC is connected on e.g. /dev/i2c-1 This must be provided during object creation.
$self->Magnetometer->enable(); $self->Magnetometer->getReading();
This is a object of Device::Magnetometer::LSM303DLHC
$self->Accelerometer->enable(); $self->Accelerometer->getReading();
This is a object of Device::Accelerometer::LSM303DLHC
Please report any bugs or feature requests through github at https://github.com/shantanubhadoria/device-lsm303dlhc/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/shantanubhadoria/device-lsm303dlhc
git clone git://github.com/shantanubhadoria/device-lsm303dlhc.git
Shantanu Bhadoria <shantanu at cpan dott org>
Shantanu <shantanu@cpan.org>
Shantanu Bhadoria <shantanu@cpan.org>
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.
To install Device::LSM303DLHC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::LSM303DLHC
CPAN shell
perl -MCPAN -e shell install Device::LSM303DLHC
For more information on module installation, please visit the detailed CPAN module installation guide.