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: main.h
- Revision:
- 1:b08ee63a2822
- Parent:
- 0:cec02cf6df66
- Child:
- 2:def2c045c43a
diff -r cec02cf6df66 -r b08ee63a2822 main.h --- a/main.h Thu Sep 01 21:20:59 2016 +0000 +++ b/main.h Fri Sep 02 19:02:26 2016 +0000 @@ -7,6 +7,8 @@ #define FW_VERSION 000 // major revisions will be 1xx, 2xx, etc. +#define VDD_DELAY 3 // seconds to keep vdd on after PRESS is released. + // Digital I/O lines #define PRESS p3 // Will be shorted to battery terminal when pressed. Need internal pull-up or pull-down #define SOUND_ANALOG p1 // Analog signal from opto sensor @@ -14,8 +16,8 @@ #define TP p2 // Test Point // ADC defines -#define ADC_CHAN_BATTERY 0 /* no I/O pin, done internally */ -#define ADC_CHAN_SOUND 2 /* p1 or Analog2 */ +//#define ADC_CHAN_BATTERY 0 /* no I/O pin, done internally */ +//#define ADC_CHAN_SOUND 2 /* p1 or Analog2 */