Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Revision:
6:75263c93daf7
Parent:
5:46947b447701
Child:
8:c6345e8d607c
--- a/main.cpp	Sun Jun 07 14:11:26 2015 +0000
+++ b/main.cpp	Sun Jun 07 21:58:02 2015 +0000
@@ -2,42 +2,10 @@
 #include "Controller.h"
 
 
-//Ticker ticker;
-
-//InterruptIn   button(p23);
-volatile int ledBlink = 0; 
-
-/*
-
-void ledInt(){
-    led = !led;    
-    }
-    
-    
-
-void buttonInt(){
-    if(ledBlink) {
-        //ticker.detach();
-        //ledBlink = 0;
-        //led = 0;
-        *(uint32_t *)0x40000500 = 0x1;
-    } else {
-        ticker.attach(&ledInt,0.1);
-        ledBlink = 1;
-        }
-    wait(0.25);
-    
-     //printf("POWER: 0x%x\n", *((unsigned int *)0x40000500));
-     //printf("POWER: 0x%x\n", NRF_POWER->SYSTEMOFF);
-
-}
-*/
-
 int main(void)
 {   
-    wait(1);
+    wait(2);
     Controller* goniometer = new Controller();
-    wait(0.01);
     
     while(true) {
         goniometer->run();