Full six channel cap sensor input and output CDG KL46Z control to Raspberry Pi NMHU Elements of Exhibit Design Fall 2014
Fork of CapKey_46_v2_button_osmon by
Diff: cdg_main.cpp
- Revision:
- 3:ee958939c828
- Parent:
- 2:4535af993186
- Child:
- 4:34ca86236686
--- 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