From e576cc93c71870da79e47db0ca8e9ab81ee61f88 Mon Sep 17 00:00:00 2001 From: Koen <98043234+koen1711@users.noreply.github.com> Date: Mon, 27 Mar 2023 13:45:44 +0200 Subject: [PATCH 1/3] Update LSM303AGR.cpp --- src/LSM303AGR.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LSM303AGR.cpp b/src/LSM303AGR.cpp index ef172f0..ca26b51 100644 --- a/src/LSM303AGR.cpp +++ b/src/LSM303AGR.cpp @@ -41,4 +41,8 @@ void CompassSensor::setDataRate(lis2mdl_rate_t rate) { void CompassSensor::reset() { CompassSensor::mag.reset(); -} \ No newline at end of file +} + +void CompassSensor::update() { + CompassSensor::mag.getEvent(&data); +} From 8600e7d791cd05be67fd9840e49053e010d395ba Mon Sep 17 00:00:00 2001 From: Koen <98043234+koen1711@users.noreply.github.com> Date: Tue, 28 Mar 2023 10:32:04 +0200 Subject: [PATCH 2/3] Update LSM303AGR.h --- src/LSM303AGR.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LSM303AGR.h b/src/LSM303AGR.h index 485c624..e158e76 100644 --- a/src/LSM303AGR.h +++ b/src/LSM303AGR.h @@ -20,6 +20,7 @@ class CompassSensor { lis2mdl_rate_t getDataRate(); void setDataRate(lis2mdl_rate_t rate); void reset(); + void update(); }; #endif From 52f4ccd65f10497242f29c7e768c15f41acbe925 Mon Sep 17 00:00:00 2001 From: Koen <98043234+koen1711@users.noreply.github.com> Date: Tue, 28 Mar 2023 10:35:36 +0200 Subject: [PATCH 3/3] Update library.properties --- library.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library.properties b/library.properties index a34a7e5..74b4cc2 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Leaphy Extra Extension -version=0.0.14 +version=0.0.15 author=Leaphy Robotics maintainer=Leaphy Robotics sentence=Provides Extra functionality to Leaphy robots @@ -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 \ No newline at end of file +depends=Adafruit SSD1306,Adafruit GFX Library,Adafruit LSM303 Accel,Adafruit LIS2MDL,Adafruit BusIO Register,Adafruit I2CDevice,Adafruit SPIDevice,Adafruit Sensor,Wire