simplyKeeb-60K

899 BH
config.h
899 B27 lines • cpp
1#pragma once
2
3// I2C Configuration for the RP2040
4// QMK Implementation does not allow definition of I2C0 PINS!
5// Always taking the I2C1 pins, regardlesss of used driver...
6#define I2C_DRIVER I2CD0
7#define I2C1_SDA_PIN GP0
8#define I2C1_SCL_PIN GP1
9
10// RIGHT_HALF PCA9555 address
11#define RIGHT_HALF 0b0100000
12
13// Matrix Definitions
14#define MATRIX_ROWS  5
15#define MATRIX_COLS  12
16#define MATRIX_ROWS_PER_SIDE MATRIX_ROWS
17#define MATRIX_COLS_PER_SIDE (MATRIX_COLS / 2)
18
19#define MATRIX_ROW_PINS_L { GP18, GP19, GP20, GP21, GP22 }
20#define MATRIX_COL_PINS_L { GP23, GP24, GP6, GP5, GP4, GP7 }
21
22#define MATRIX_ROW_PINS_R { 0b00000001, 0b00000010, 0b00000100, 0b00001000, 0b00010000 }
23#define MATRIX_COL_PINS_R { 0b00000001, 0b00000010, 0b00000100, 0b00001000, 0b00010000, 0b00100000 }
24
25// Bootloader Config
26#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
27#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 200U