summaryrefslogtreecommitdiff
path: root/keyboards/rart/rart4x4/config.h
diff options
context:
space:
mode:
authorAlabahuy <rezzaadio@gmail.com>2020-12-17 04:02:47 +0700
committerGitHub <noreply@github.com>2020-12-16 13:02:47 -0800
commit11669bb45bd433af49d14b2836b208ed6d0877f3 (patch)
treebc6e63134f8fb47b9dc313d0b6fe86af66fee268 /keyboards/rart/rart4x4/config.h
parent3295ac90ee9d0c0d4dc9c22bf107c9713f422696 (diff)
downloadqmk_firmware-11669bb45bd433af49d14b2836b208ed6d0877f3.tar.gz
qmk_firmware-11669bb45bd433af49d14b2836b208ed6d0877f3.zip
[Keyboard] Add rart/rart4x4 with VIA support (#11095)
* Create config.h * Create info.json * Create rart4x4.c * Create rart4x4.h * Create readme.md * Create rules.mk * Create keymap.c * Create keymap.c * Rename keyboards/rart/rart4x4/default/keymap.c to keyboards/rart/rart4x4/keymaps/default/keymap.c * Rename keyboards/rart/rart4x4/via/keymap.c to keyboards/rart/rart4x4/keymaps/via/keymap.c * Create rules.mk * Update info.json * Update keymap.c * Update rart4x4.h * Update rules.mk
Diffstat (limited to 'keyboards/rart/rart4x4/config.h')
-rw-r--r--keyboards/rart/rart4x4/config.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/keyboards/rart/rart4x4/config.h b/keyboards/rart/rart4x4/config.h
new file mode 100644
index 0000000000..0d79e31403
--- /dev/null
+++ b/keyboards/rart/rart4x4/config.h
@@ -0,0 +1,62 @@
+/*
+Copyright 2020 Alabahuy
+
+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 <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x414C
+#define PRODUCT_ID 0x0004
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Alabahuy
+#define PRODUCT RART4X4
+
+/* key matrix size */
+#define MATRIX_ROWS 4
+#define MATRIX_COLS 4
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { F4, B6, B3, B1 }
+#define MATRIX_COL_PINS { F7, B2, B5, B4 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* Set 0 if debouncing isn't needed */
+#define DEBOUNCE 5
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+#define ENCODERS_PAD_A { F6, D7 }
+#define ENCODERS_PAD_B { F5, E6 }
+
+#define RGB_DI_PIN D3
+#ifdef RGB_DI_PIN
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 5
+#define RGBLIGHT_HUE_STEP 8
+#define RGBLIGHT_SAT_STEP 8
+#define RGBLIGHT_VAL_STEP 8
+#define RGBLIGHT_LIMIT_VAL 240
+#define RGBLIGHT_SLEEP
+#endif