diff options
author | lokher <lokher@gmail.com> | 2022-12-06 17:10:48 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-07 15:50:49 +0800 |
commit | a336c2c5005251e4cb0f3a62ccabdb4cfccad915 (patch) | |
tree | 3c948b631a5e3b6f940dabe02fad3c7487e6f350 /keyboards/matrix/m20add/config.h | |
parent | 27fc28fd2ff52e079a5bc58d6aaea4c752420615 (diff) |
Merge upstream master to 2022 Q4 breaking change
Diffstat (limited to 'keyboards/matrix/m20add/config.h')
-rw-r--r-- | keyboards/matrix/m20add/config.h | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/keyboards/matrix/m20add/config.h b/keyboards/matrix/m20add/config.h deleted file mode 100644 index 664dd3d0c1..0000000000 --- a/keyboards/matrix/m20add/config.h +++ /dev/null @@ -1,99 +0,0 @@ -/** - * config.h - * - */ - -#pragma once - -#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE - -/* key matrix size */ -#define MATRIX_ROWS 6 -#define MATRIX_COLS 16 - -#define DEF_PIN(port, pin) (((port) << 8) | pin) -#define GET_PORT(pp) (((pp) >> 8) & 0xFF) -#define GET_PIN(pp) ((pp) & 0xFF) - -#define ROW1_MASK 0x80 -#define ROW2_MASK 0x40 -#define ROW3_MASK 0x01 -#define ROW4_MASK 0x04 -#define ROW5_MASK 0x10 -#define ROW6_MASK 0x20 -#define ROW_PORT TCA6424_PORT2 - -#define COL1_MASK 0x02 -#define COL2_MASK 0x80 -#define COL3_MASK 0x40 -#define COL4_MASK 0x20 -#define COL5_MASK 0x10 -#define COL6_MASK 0x08 -#define COL7_MASK 0x04 -#define COL8_MASK 0x02 -#define COL9_MASK 0x01 -#define COL10_MASK 0x80 -#define COL11_MASK 0x40 -#define COL12_MASK 0x20 -#define COL13_MASK 0x10 -#define COL14_MASK 0x08 -#define COL15_MASK 0x04 -#define COL16_MASK 0x02 - -// Note: MATRIX_ROW_PINS only works with standard pin names. -#define MATRIX_M20_ROW_PINS { \ - DEF_PIN(TCA6424_PORT2, 7), \ - DEF_PIN(TCA6424_PORT2, 6), \ - DEF_PIN(TCA6424_PORT2, 0), \ - DEF_PIN(TCA6424_PORT2, 2), \ - DEF_PIN(TCA6424_PORT2, 4), \ - DEF_PIN(TCA6424_PORT2, 5) } - -// Note: MATRIX_COL_PINS only works with standard pin names. -#define MATRIX_M20_COL_PINS { \ - DEF_PIN(TCA6424_PORT2, 1), \ - DEF_PIN(TCA6424_PORT1, 7), \ - DEF_PIN(TCA6424_PORT1, 6), \ - DEF_PIN(TCA6424_PORT1, 5), \ - DEF_PIN(TCA6424_PORT1, 4), \ - DEF_PIN(TCA6424_PORT1, 3), \ - DEF_PIN(TCA6424_PORT1, 2), \ - DEF_PIN(TCA6424_PORT1, 1), \ - DEF_PIN(TCA6424_PORT1, 0), \ - DEF_PIN(TCA6424_PORT0, 7), \ - DEF_PIN(TCA6424_PORT0, 6), \ - DEF_PIN(TCA6424_PORT0, 5), \ - DEF_PIN(TCA6424_PORT0, 4), \ - DEF_PIN(TCA6424_PORT0, 3), \ - DEF_PIN(TCA6424_PORT0, 2), \ - DEF_PIN(TCA6424_PORT0, 1) } - - - -#define DIODE_DIRECTION COL2ROW -#define DEBOUNCE 5 - -// i2c setting -#define I2C1_SCL_PIN B8 -#define I2C1_SDA_PIN B9 -#define I2C1_CLOCK_SPEED 400000 -#define I2C1_DUTY_CYCLE FAST_DUTY_CYCLE_2 - -// rgb light setting -#define RGB_DI_PIN B4 // reserved pin for future usage -#define RGBLED_NUM 20 -#define RGBLIGHT_EFFECT_BREATHING -#define RGBLIGHT_EFFECT_RAINBOW_MOOD -#define RGBLIGHT_EFFECT_RAINBOW_SWIRL -#define RGBLIGHT_EFFECT_SNAKE -#define RGBLIGHT_EFFECT_KNIGHT -#define RGBLIGHT_EFFECT_CHRISTMAS -#define RGBLIGHT_EFFECT_STATIC_GRADIENT -#define RGBLIGHT_EFFECT_RGB_TEST -#define RGBLIGHT_EFFECT_ALTERNATING -#define RGBLIGHT_EFFECT_TWINKLE - - -#define DRIVER_ADDR_1 0b1110100 -#define DRIVER_COUNT 1 -#define RGB_MATRIX_LED_COUNT RGBLED_NUM |