altered scohennm's code to allow for 6 outputs
Fork of CapKey_46_v2_button by
Revision 3:ee958939c828, committed 2014-11-04
- Comitter:
- josmon
- Date:
- Tue Nov 04 05:27:58 2014 +0000
- Parent:
- 2:4535af993186
- Commit message:
- Osmon altered Choen version to utilize 6 outputs
Changed in this revision
cdg_main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4535af993186 -r ee958939c828 cdg_main.cpp --- a/cdg_main.cpp Fri Oct 31 22:32:27 2014 +0000 +++ b/cdg_main.cpp Tue Nov 04 05:27:58 2014 +0000 @@ -16,14 +16,14 @@ #define LED_ON LOW #define LED_OFF HIGH #define DEBOUNCE 50 -#define NUMREL 4 // really just the number of outputs +#define NUMREL 6 // really just the number of outputs #define LCDDELAY 0.200 #define COUNTERLIMIT 300 -DigitalOut Relays[NUMREL] = {D10,D11,D12,D13}; // corresponds to touches 1,2,3,4 +DigitalOut Relays[NUMREL] = {D10,D11,D12,D13,PTC13,PTC16}; // corresponds to touches 1,2,3,4 //DigitalIn capKeys[NUMREL] = {D2,D4,D6,D8}; -DigitalOut capRST[NUMREL] = {D3,D5,D7,D9}; +DigitalOut capRST[NUMREL] = {D3,D5,D7,D9,PTC10,PTC11}; DigitalIn sendKey(PTC3); // on board buttons just use 1 for test