Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from koen1711/patch-4
Browse files Browse the repository at this point in the history
Update LSM303AGR.cpp
  • Loading branch information
paulsiersma authored Mar 28, 2023
2 parents fabbe93 + 52f4ccd commit 13951c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Leaphy Extra Extension
version=0.0.14
version=0.0.15
author=Leaphy Robotics
maintainer=Leaphy Robotics <[email protected]>
sentence=Provides Extra functionality to Leaphy robots
Expand All @@ -8,4 +8,4 @@ category=Device Control
url=https://github.com/leaphy-robotics/leaphy-extensions-extra
architectures=avr
includes=Adafruit_NeoPixel.h,Adafruit_TCS34725.h,ledstrip.h,Leaphy_Extra.h,OLED_Display.h,LSM303AGR.h
depends=Adafruit SSD1306,Adafruit GFX Library,Adafruit LSM303 Accel,Adafruit LIS2MDL,Adafruit BusIO Register,Adafruit I2CDevice,Adafruit SPIDevice,Adafruit Sensor,Wire
depends=Adafruit SSD1306,Adafruit GFX Library,Adafruit LSM303 Accel,Adafruit LIS2MDL,Adafruit BusIO Register,Adafruit I2CDevice,Adafruit SPIDevice,Adafruit Sensor,Wire
6 changes: 5 additions & 1 deletion src/LSM303AGR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ void CompassSensor::setDataRate(lis2mdl_rate_t rate) {

void CompassSensor::reset() {
CompassSensor::mag.reset();
}
}

void CompassSensor::update() {
CompassSensor::mag.getEvent(&data);
}
1 change: 1 addition & 0 deletions src/LSM303AGR.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class CompassSensor {
lis2mdl_rate_t getDataRate();
void setDataRate(lis2mdl_rate_t rate);
void reset();
void update();
};

#endif

0 comments on commit 13951c6

Please sign in to comment.