From e9d5967a93f789a87701c6123a73ecbd8dc7050b Mon Sep 17 00:00:00 2001 From: HorrorTroll Date: Thu, 1 Dec 2022 06:30:41 +0700 Subject: [Keyboard] Add keyboard Caticorn (#19138) --- keyboards/horrortroll/caticorn/config.h | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 keyboards/horrortroll/caticorn/config.h (limited to 'keyboards/horrortroll/caticorn/config.h') diff --git a/keyboards/horrortroll/caticorn/config.h b/keyboards/horrortroll/caticorn/config.h new file mode 100644 index 0000000000..bef1b690ab --- /dev/null +++ b/keyboards/horrortroll/caticorn/config.h @@ -0,0 +1,38 @@ +/* Copyright 2022 HorrorTroll + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include "config_common.h" + +/* key matrix size */ +#define MATRIX_ROWS 6 +#define MATRIX_COLS 17 + +/* key matrix pins */ +#define MATRIX_ROW_PINS \ + { GP7, GP0, GP8, GP25, GP11, GP12 } +#define MATRIX_COL_PINS \ + { GP6, GP5, GP4, GP3, GP2, GP1, GP20, GP21, GP16, GP17, GP18, GP19, GP15, GP14, GP13, GP10, GP9 } + +#define BOOTMAGIC_LITE_ROW 0 +#define BOOTMAGIC_LITE_COLUMN 0 + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 -- cgit v1.2.3