init

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Files at this revision

API Documentation at this revision

Comitter:
pathfindr
Date:
Mon Nov 12 10:56:23 2018 +0000
Parent:
4:8d8e9bfa82e4
Child:
6:388d3c7efdd9
Commit message:
test

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Nov 11 20:52:22 2018 +0000
+++ b/main.cpp	Mon Nov 12 10:56:23 2018 +0000
@@ -2,7 +2,7 @@
 #include "board.h"
 #include "modes.h"
 
-#include "nrf_soc.h"
+//include "nrf_soc.h"
 
 //#include "ATCommand.h"
 
@@ -141,7 +141,7 @@
     while(true) {
         //GOTO TO SLEEP
         if (!firstBoot) gotoSleep(60000);
-        LED1on(50);
+        LED1on(20);
         watchdog.kick();
         
         //MAIN STATE ENGINE
@@ -165,11 +165,11 @@
     //TEST AREA
     LIS3DH accelerometer(p23, p19, p24, p22, LIS3DH_DR_NR_LP_25HZ, LIS3DH_FS_8G);
     requireSoftReset = true;
-    if (accelerometer.selfTest()) {
+    if (!accelerometer.selfTest()) {
          LED1on(100);
     }
     accelerometer.configureForSleep();
-    ThisThread::sleep_for(10000);
+    //ThisThread::sleep_for(10000);
     
     
     
--- a/main.h	Sun Nov 11 20:52:22 2018 +0000
+++ b/main.h	Mon Nov 12 10:56:23 2018 +0000
@@ -29,10 +29,6 @@
 // Block devices
 //#include "SPIFBlockDevice.h"
 
-// File systems
-//#include "LittleFileSystem.h"
-//#include "FATFileSystem.h"
-
 
 //------------------------------------------------------------------------------
 //peripheral Libraries
@@ -64,10 +60,12 @@
 //SEGGER Debugger Libraries
 //------------------------------------------------------------------------------
 //#include "SEGGER_RTT/SEGGER_RTT.h"
+
 //------------------------------------------------------------------------------
 //Application headers
 //------------------------------------------------------------------------------
 #include "modes.h"
+
 //------------------------------------------------------------------------------
 //Global macros
 //------------------------------------------------------------------------------