diff options
author | Drashna Jaelre <drashna@live.com> | 2020-09-30 16:52:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 16:52:47 -0700 |
commit | 11c308d436180974b7719ce78cdffdd83a1302c0 (patch) | |
tree | 4c798a48b13e328bba01b66459775511e0131493 /keyboards/ergodox_ez/config.h | |
parent | 482c9fbbf28c7e871145cacd01f22c9edf7d1ddf (diff) |
[Keyboard] Convert ErgoDox EZ to Matrix Lite (#10189)
* Convert ErgoDox EZ to lite matrix
* Add initial config from Dactyl config
Based on ErinCall's work to generalize the mcp i/o expander matrix code
* formatting
* Fix number of pins
* Remove unused defines
Diffstat (limited to 'keyboards/ergodox_ez/config.h')
-rw-r--r-- | keyboards/ergodox_ez/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/config.h b/keyboards/ergodox_ez/config.h index 8ef600b089..eb0f2066da 100644 --- a/keyboards/ergodox_ez/config.h +++ b/keyboards/ergodox_ez/config.h @@ -32,6 +32,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define MATRIX_ROWS_PER_SIDE (MATRIX_ROWS / 2) #define MATRIX_COLS 6 +#define COL_EXPANDED { true, true, true, true, true, true, true, false, false, false, false, false, false, false } +#define MATRIX_ONBOARD_ROW_PINS { 0, 0, 0, 0, 0, 0, 0, B0, B1, B2, B3, D2, D3, C6 } +#define MATRIX_ONBOARD_COL_PINS { F0, F1, F4, F5, F6, F7 } +#define DIODE_DIRECTION COL2ROW +#define EXPANDER_COL_REGISTER GPIOB +#define EXPANDER_ROW_REGISTER GPIOA +#define MATRIX_EXPANDER_COL_PINS { 5, 4, 3, 2, 1, 0 } +#define MATRIX_EXPANDER_ROW_PINS { 0, 1, 2, 3, 4, 5, 6 } + + #define MOUSEKEY_INTERVAL 20 #define MOUSEKEY_DELAY 0 #define MOUSEKEY_TIME_TO_MAX 60 |