From 7caf0b1ab89224c92671e4617f023b6ea1fa1531 Mon Sep 17 00:00:00 2001 From: adophoxia <100170946+adophoxia@users.noreply.github.com> Date: Sat, 24 Sep 2022 11:53:22 -0700 Subject: [Keyboard] Add Keychron Q0 (#18348) --- keyboards/keychron/q0/rev_0130/config.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 keyboards/keychron/q0/rev_0130/config.h (limited to 'keyboards/keychron/q0/rev_0130/config.h') diff --git a/keyboards/keychron/q0/rev_0130/config.h b/keyboards/keychron/q0/rev_0130/config.h new file mode 100644 index 0000000000..e7fabed664 --- /dev/null +++ b/keyboards/keychron/q0/rev_0130/config.h @@ -0,0 +1,24 @@ +/* Copyright 2022 @ Keychron (https://www.keychron.com) + * + * 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 + +/* RGB Matrix Configuration */ +#define DRIVER_1_LED_TOTAL 21 +#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + +/* Enable num-lock LED */ +#define NUM_LOCK_LED_INDEX 4 -- cgit v1.2.3 From c7a65558ee70310b607393c4a69f1ef953f7b138 Mon Sep 17 00:00:00 2001 From: jack <0x6A73@pm.me> Date: Sun, 25 Sep 2022 03:32:51 -0600 Subject: Remove lingering `DRIVER_LED_TOTAL` references (#18475) --- keyboards/keychron/q0/rev_0130/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/keychron/q0/rev_0130/config.h') diff --git a/keyboards/keychron/q0/rev_0130/config.h b/keyboards/keychron/q0/rev_0130/config.h index e7fabed664..126d636589 100644 --- a/keyboards/keychron/q0/rev_0130/config.h +++ b/keyboards/keychron/q0/rev_0130/config.h @@ -18,7 +18,7 @@ /* RGB Matrix Configuration */ #define DRIVER_1_LED_TOTAL 21 -#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL +#define RGB_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL /* Enable num-lock LED */ #define NUM_LOCK_LED_INDEX 4 -- cgit v1.2.3