I have a few questions for everyone.
Im building a 16 key 4x4 matrix macro keyboard.
I have a few questions on the code.
When I define the code as follows
#include <Keyboard.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char CalculatorKeys[ROWS][COLS] = {
{'7','8','9','/'},
{'4','5','6','*'},
{'1','2','3','-'},
{'C','0','=','+'}
};
Can I add other things besides single keys here.
IE
#include <Keyboard.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char CalculatorKeys[ROWS][COLS] = {
{'google.com','8','9','/'},
{'4','5','6','*'},
{'1','2','3','-'},
{'C','0','=','+'}
};
Second question. If I wanted to add a second layer to the matrix using say a dip switch. Would I write the code with an if else saying check pin(x) if on choose
#include <Keyboard.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char CalculatorKeys[ROWS][COLS] = {
{'7','8','9','/'},
{'4','5','6','*'},
{'1','2','3','-'},
{'C','0','=','+'}
};
else chose
#include <Keyboard.h>
const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char CalculatorKeys[ROWS][COLS] = {
{'google.com','8','9','/'},
{'4','5','6','*'},
{'1','2','3','-'},
{'C','0','=','+'}
};
Sorry for the long winded question. TFA