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.
Revision 0:0f12b8c4d5f1, committed 2019-07-16
- 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
--- /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