Merck / Mbed OS SmartCap_OS5

Dependencies:   nRF51822

Revision:
58:9b94a7caadba
Parent:
55:a66f86bbfc9f
Child:
59:1dd53bfb012d
--- a/Source/main.h	Fri Dec 11 21:34:00 2020 +0000
+++ b/Source/main.h	Fri Dec 18 19:17:26 2020 +0000
@@ -39,6 +39,9 @@
 
 #define LIGHT_SENSE_PWRON_DELAY 0.200 // delay (seconds) between turning on light sense circuit, and taking an ADC reading.
 
+#define GO_BACK_TO_SLEEP_DELAY  30  // When in SHIP_MODE_CHECK_CAP or SHIP_MODE_WAIT_CAP_OFF, we will not go back to sleep until the test is true this many times. (0 turns this feature off)
+#define AMBIENT_DEBOUNCE        15  // Number of times the ambient sensor must show darkness in a row before going to sleep
+
 
 extern void process_cmd(char * cmd);
 extern void dataWasRead(void);