added main and defined M_PI

Dependencies:   BNOWrapper

main.cpp

Committer:
JesiMiranda
Date:
2019-07-16
Revision:
0:0f12b8c4d5f1
Child:
1:4a5b43b9502c

File content as of revision 0:0f12b8c4d5f1:

/* 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;
    }
}