diff options
author | QMK Bot <hello@qmk.fm> | 2022-05-31 02:09:37 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-05-31 02:09:37 +0000 |
commit | a099579aa0d1a51923cde0fe825047e7af2b9e86 (patch) | |
tree | 2b90a43301b76286d2b2792d4cb471103a7eb5f0 /keyboards/ktec/ergodone/expander.h | |
parent | 67e80780bb15a74f25148fb16bf59b45205e9b27 (diff) | |
parent | 0e11b511e4a3c48a67de6414b0907ec26dfcdf49 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/ktec/ergodone/expander.h')
-rw-r--r-- | keyboards/ktec/ergodone/expander.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/keyboards/ktec/ergodone/expander.h b/keyboards/ktec/ergodone/expander.h deleted file mode 100644 index 071570c408..0000000000 --- a/keyboards/ktec/ergodone/expander.h +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include <stdint.h> -#include "matrix.h" - -#define MCP23017 -#define MCP23017_A0 0 -#define MCP23017_A1 0 -#define MCP23017_A2 0 - -#ifdef MCP23017 -#define EXPANDER_ADDR ((0x20|(MCP23017_A0<<0)|(MCP23017_A1<<1)|(MCP23017_A2<<2)) << 1) -enum EXPANDER_REG_BANK0 { - EXPANDER_REG_IODIRA = 0, - EXPANDER_REG_IODIRB, - EXPANDER_REG_IPOLA, - EXPANDER_REG_IPOLB, - EXPANDER_REG_GPINTENA, - EXPANDER_REG_GPINTENB, - EXPANDER_REG_DEFVALA, - EXPANDER_REG_DEFVALB, - EXPANDER_REG_INTCONA, - EXPANDER_REG_INTCONB, - EXPANDER_REG_IOCONA, - EXPANDER_REG_IOCONB, - EXPANDER_REG_GPPUA, - EXPANDER_REG_GPPUB, - EXPANDER_REG_INTFA, - EXPANDER_REG_INTFB, - EXPANDER_REG_INTCAPA, - EXPANDER_REG_INTCAPB, - EXPANDER_REG_GPIOA, - EXPANDER_REG_GPIOB, - EXPANDER_REG_OLATA, - EXPANDER_REG_OLATB -}; -#endif - -void expander_init(void); -void expander_scan(void); -void expander_read_cols(void); -uint8_t expander_get_col(uint8_t col); -matrix_row_t expander_read_row(void); -void expander_unselect_rows(void); -void expander_select_row(uint8_t row); |