Getting closer:
using:
UI_KEYS_INIT_MATRIX(6,5);
UI_KEYS_MATRIX(6,5);
I get:
exit status 1
macro "UI_KEYS_INIT_MATRIX" requires 8 arguments, but only 2 given
so I tried :
UI_KEYS_INIT_MATRIX(6,44,64,59,5,66,1,4);
UI_KEYS_MATRIX(6,44,64,59,5,66,1,4);
and changed actions to:
#define UI_MATRIX_ACTIONS {UI_ACTION_IDENT01, UI_ACTION_IDENT02, UI_ACTION_IDENT03, UI_ACTION_IDENT04,</div>
UI_ACTION_IDENT05, UI_ACTION_IDENT06, UI_ACTION_IDENT07, UI_ACTION_IDENT08,</div>
UI_ACTION_IDENT09, UI_ACTION_IDENT10, UI_ACTION_IDENT11, UI_ACTION_IDENT12,</div>
UI_ACTION_IDENT13, UI_ACTION_IDENT14, UI_ACTION_IDENT15, UI_ACTION_IDENT16}
const int matrixActions[] PROGMEM = UI_MATRIX_ACTIONS;
made the proper mods to ui.cpp like:
case UI_ACTION_IDENT16:
Com::printFLN(PSTR("This is 16"));
break;
Some of the keys worked like this so I know I'm getting close, It looks like only lower numbers seem to work. I tried different combo of pins until this:
UI_KEYS_INIT_MATRIX(11,6,5,4,1,0,14,18);
UI_KEYS_MATRIX(11,6,5,4,1,0,14,18);
Every key works now except R1C1 which should trigger UI_ACTION_IDENT01, I am not sure why. I tried switiching it to UI_ACTION_HOME_ALL but it didn't work.
Why can't I use any of the pins in the AUX2 area? with servo and zprobe, I am a pin short unless I can get AUX2 pins to work in matrix.
Also, any idea's how only 1 button could be not working?