Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51822
Diff: Source/main.h
- 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);