Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LSM9DS1_Library by
Revision 2:24a1da642dc9, committed 2017-12-06
- Comitter:
- ksastry3
- Date:
- Wed Dec 06 02:18:50 2017 +0000
- Parent:
- 1:87d535bf8c53
- Commit message:
- Moved PinDetect out and fixed a typo.
Changed in this revision
--- a/LSM9DS1.h Mon Oct 26 16:14:04 2015 +0000
+++ b/LSM9DS1.h Wed Dec 06 02:18:50 2017 +0000
@@ -312,7 +312,7 @@
* Any OR'd combination of ZIEN, YIEN, XIEN
* - activeLow = Interrupt active configuration
* Can be either INT_ACTIVE_HIGH or INT_ACTIVE_LOW
- */ - latch: latch gyroscope interrupt request.
+ * - latch: latch gyroscope interrupt request. */
void configMagInt(uint8_t generator, h_lactive activeLow, bool latch = true);
/** configMagThs() -- Configure the threshold of a gyroscope axis
--- a/PinDetect.lib Mon Oct 26 16:14:04 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/AjK/code/PinDetect/#cb3afc45028b
--- a/main.cpp Mon Oct 26 16:14:04 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#include "LSM9DS1.h"
-
-DigitalOut myled(LED1);
-Serial pc(USBTX, USBRX);
-
-int main() {
- //LSM9DS1 lol(p9, p10, 0x6B, 0x1E);
- LSM9DS1 lol(p9, p10, 0xD6, 0x3C);
- lol.begin();
- if (!lol.begin()) {
- pc.printf("Failed to communicate with LSM9DS1.\n");
- }
- lol.calibrate();
- while(1) {
- lol.readTemp();
- lol.readMag();
- lol.readGyro();
-
- //pc.printf("%d %d %d %d %d %d %d %d %d\n\r", lol.calcGyro(lol.gx), lol.calcGyro(lol.gy), lol.calcGyro(lol.gz), lol.ax, lol.ay, lol.az, lol.mx, lol.my, lol.mz);
- //pc.printf("%d %d %d\n\r", lol.calcGyro(lol.gx), lol.calcGyro(lol.gy), lol.calcGyro(lol.gz));
- pc.printf("gyro: %d %d %d\n\r", lol.gx, lol.gy, lol.gz);
- pc.printf("accel: %d %d %d\n\r", lol.ax, lol.ay, lol.az);
- pc.printf("mag: %d %d %d\n\n\r", lol.mx, lol.my, lol.mz);
- myled = 1;
- wait(2);
- myled = 0;
- wait(2);
- }
-}
--- a/mbed.bld Mon Oct 26 16:14:04 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/34e6b704fe68 \ No newline at end of file
