init
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
Diff: main.cpp
- Revision:
- 5:8f8951127724
- Parent:
- 4:8d8e9bfa82e4
- Child:
- 6:388d3c7efdd9
--- 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);