Eduardo Vergara / Mbed OS BNO080_program

Dependencies:   BNOWrapper

Files at this revision

API Documentation at this revision

Comitter:
JesiMiranda
Date:
Tue Jul 16 16:37:37 2019 +0000
Child:
1:4a5b43b9502c
Commit message:
added main and defined M_PI;

Changed in this revision

.gitignore Show annotated file Show diff for this revision Revisions of this file
BNO080.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitignore	Tue Jul 16 16:37:37 2019 +0000
@@ -0,0 +1,4 @@
+.build
+.mbed
+projectfiles
+*.py*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BNO080.lib	Tue Jul 16 16:37:37 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/Affordable-Smart-Wheelchair/code/BNO080/#8e016f874c42
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jul 16 16:37:37 2019 +0000
@@ -0,0 +1,23 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2018 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"
+#include "BNO080.h"
+DigitalOut led1(LED1);
+
+#define SLEEP_TIME                  500 // (msec)
+
+BNO080 imu;
+// main() runs in its own thread in the OS
+int main()
+{
+    int count = 0;
+    while (true) {
+        // Blink LED and wait 0.5 seconds
+        led1 = !led1;
+        wait_ms(SLEEP_TIME);
+        ++count;
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Jul 16 16:37:37 2019 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#0063e5de32fc575f061244c96ac60c41c07bd2e6