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:
- 0:cec02cf6df66
- Child:
- 1:b08ee63a2822
diff -r 000000000000 -r cec02cf6df66 main.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Thu Sep 01 21:20:59 2016 +0000 @@ -0,0 +1,22 @@ + +#ifndef MAIN_H +#define MAIN_H + + +#define UART_DEBUGGING 0 // put a '1' here if you are debugging on the BLE UART, otherwise make it 0. Turns on: shows records being added to log, will not allow a ble connection to timeout + +#define FW_VERSION 000 // major revisions will be 1xx, 2xx, etc. + +// 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 +#define VDD_ENABLE p24 // Analog voltage on when hi +#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 */ + + + +#endif // #ifndef MAIN_H \ No newline at end of file