Making sub-modules of matrix for HeathZenith and BudKeypad
- Parent module no longer allows for a stand-alone compile - Added HeathZenith matrix (pinout still needs to be done) - Updated the HeathZenith keymaps - Changed the original example matrix.h to matrix_template.h
This commit is contained in:
parent
aa77d5d8a4
commit
e3042a3526
8 changed files with 238 additions and 10 deletions
|
@ -53,9 +53,11 @@
|
|||
|
||||
|
||||
// -- Example for scanRow_powrCol, scanCol_powrRow, and scanDual --
|
||||
/*
|
||||
#define KEYBOARD_SIZE 69 // # of keys
|
||||
#define MAX_ROW_SIZE 8 // # of keys in the largest row
|
||||
#define MAX_COL_SIZE 9 // # of keys in the largest column
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
@ -113,6 +115,7 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
|
|||
|
||||
// -- scanRow_powrCol Example and scanCol_powrRow Example --
|
||||
// The example is the same, as the difference is whether the row or col is powered, and the other is used to detect the signal
|
||||
/*
|
||||
{ scanMode, pinF0, pinF4, pinB7, pinD3, pinF5, pinF1, pinD1, pinD2 },
|
||||
{ pinF6, 1, 2, 3, 4, 5, 6, 7, 8 },
|
||||
{ pinF7, 9, 10, 11, 12, 13, 14, 15, 16 },
|
||||
|
@ -123,6 +126,7 @@ static const uint8_t matrix_pinout[][MAX_ROW_SIZE + 1] = {
|
|||
{ pinB1, 28, 24, 34, 44, 54, 64, 0, 49 }, // 0 signifies no key at that location
|
||||
{ pinB3, 29, 25, 35, 45, 55, 65, 0, 57 },
|
||||
{ pinA0, 37, 26, 36, 46, 56, 66, 0, 58 },
|
||||
*/
|
||||
|
||||
|
||||
// -- scanDual Example --
|
|
@ -6,6 +6,13 @@
|
|||
#
|
||||
###
|
||||
|
||||
###
|
||||
# Warning, that this module is not meant to be built stand-alone
|
||||
#
|
||||
message( FATAL_ERROR
|
||||
"The 'matrix' module is not a stand-alone module, and requires further setup.
|
||||
See BudKeypad module for as an example module."
|
||||
)
|
||||
|
||||
###
|
||||
# Module C files
|
||||
|
@ -22,10 +29,8 @@ set( SCAN_SRCS
|
|||
#
|
||||
add_definitions( -I${HEAD_DIR}/Keymap )
|
||||
|
||||
#| Keymap Settings
|
||||
add_definitions(
|
||||
-DMODIFIER_MASK=budkeypad_ModifierMask
|
||||
#-DKEYINDEX_MASK=budkeypad_TheProfosistMap
|
||||
-DKEYINDEX_MASK=budkeypad_DefaultMap
|
||||
#-DMODIFIER_MASK=
|
||||
#-DKEYINDEX_MASK=
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue