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:
- 48:bb7d5118e03c
- Parent:
- 47:a1e91dea282d
- Child:
- 49:d2bd9056426e
--- a/Source/main.h Tue Aug 25 18:54:12 2020 +0000 +++ b/Source/main.h Wed Sep 02 19:11:28 2020 +0000 @@ -4,7 +4,7 @@ #define FW_VERSION "V1.17" // major revisions will be 1xx, 2xx, etc. -#define SKIP_SHIP_MODE 1 // 0=normal, 1=Test mode, where SHIP_MODE is skipped +#define SKIP_SHIP_MODE 0 // 0=normal, 1=Test mode, where SHIP_MODE is skipped #define UART_DEBUGGING 0 // if =1, put out debug info on the BLE_UART #define ENABLE_LED 0 // if =1, enable the debug LED //#define TEST_ON_NRF51_DK 0 // if =1, configure for running on nRF51-DK board @@ -20,6 +20,10 @@ #define CAP_THRESHOLD_OFF 12 // Cap off threshold. Higher value means it triggers more easily #define CAP_THRESHOLD_OFF_EOL 25 // Cap off threshold for EOL to ensure bluetooth advertising - FTD 08212020 +#define CAP_THRESHOLD_OFF_INITIAL 10 // initial value of adaptive cap_off threshold +#define CAP_THRESHOLD_ADAPT_RATE 192 // How fast the thresholf adapts. number 0 to 256. 256 means adapt immediately, 0 means no adapt. +#define CAP_THRESHOLD_PERCENT_OF_PEAK 192 // What fraction of the peak on-off cap reading is used for the threshold. %*256, so 85% is .85*256=218 + #define CAP_SAMPLES 2 // Number of samples used for cap sensor average - FTD 08212020 //#define CAP_THRESHOLD 25 // adjusts the sensitivity of the cap sensor. Lower value means it triggers more easily