Edit

Dependencies:   Lis2dh12 aconno_I2C aconno_nrf52_uart adc52832_common aconno_SEGGER_RTT

Files at this revision

API Documentation at this revision

Comitter:
jurica238814
Date:
Thu Mar 01 08:55:48 2018 +0000
Branch:
NanoModule
Parent:
11:3855ef4f075f
Child:
13:7ae1c5bcccb5
Commit message:
New msgs added.

Changed in this revision

source/main.cpp Show annotated file Show diff for this revision Revisions of this file
source/main.h Show annotated file Show diff for this revision Revisions of this file
--- a/source/main.cpp	Thu Mar 01 08:00:10 2018 +0000
+++ b/source/main.cpp	Thu Mar 01 08:55:48 2018 +0000
@@ -48,10 +48,12 @@
         Thread::signal_wait(ACC_INT_SIG);
         Thread::signal_clr(ACC_INT_SIG);
         //I2C i2c(I2C_DATA,I2C_CLK);
+        printf("\r\n\r\n**********************\r\n");
         printf("Interrupt on accelerometer.\r\n");
         printf("X acceleration data: %d [mg]\r\n", mems.readXAxis()*LSB_VALUE);
         printf("Y acceleration data: %d [mg]\r\n", mems.readYAxis()*LSB_VALUE);
         printf("Z acceleration data: %d [mg]\r\n", mems.readZAxis()*LSB_VALUE);
+        printf("******************************\r\n");
         //disableI2C();
         //__enable_irq();
         
@@ -76,7 +78,7 @@
         printf("X acceleration data: %d [mg]\r\n", mems.readXAxis()*LSB_VALUE);
         printf("Y acceleration data: %d [mg]\r\n", mems.readYAxis()*LSB_VALUE);
         printf("Z acceleration data: %d [mg]\r\n\r\n", mems.readZAxis()*LSB_VALUE);
-        wait_ms(1000);
+        wait_ms(100);
     }
 }
 
@@ -112,7 +114,7 @@
     mems.int1Config(0x2A);      // Enable XHigh, YHigh and ZHigh
     
     bleT.start(callback(bleF, &ble));   // Start bleT
-    //measureT.start(callback(measureF));
+    measureT.start(callback(measureF));
     
     while(1){
         //disableI2C();
--- a/source/main.h	Thu Mar 01 08:00:10 2018 +0000
+++ b/source/main.h	Thu Mar 01 08:55:48 2018 +0000
@@ -18,7 +18,7 @@
 #define DEBUG               (0)
 #define PRINT_ON_RTT        (1)
 #define DEBUG_LED           (1)
-#define NANO_MODULE         (0)
+#define NANO_MODULE         (1)
 #define LSB_VALUE           (16)
 
 #if NANO_MODULE