![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
added main and defined M_PI
Diff: main.cpp
- Revision:
- 0:0f12b8c4d5f1
- Child:
- 1:4a5b43b9502c
diff -r 000000000000 -r 0f12b8c4d5f1 main.cpp --- /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; + } +}