summaryrefslogtreecommitdiff
path: root/keyboards/skyloong/gk61/v1/config.h
diff options
context:
space:
mode:
authorskyloong <92424712+JZ-Skyloong@users.noreply.github.com>2023-10-04 12:01:10 +0800
committerGitHub <noreply@github.com>2023-10-03 21:01:10 -0700
commit2ba0a75c2f7a1218f9bf2a1cdb5ef0280f9f68ab (patch)
treec80ae6d77db6045ef54e381e791a5b8eea89a787 /keyboards/skyloong/gk61/v1/config.h
parent38f89dfc2f8535ca8721a9ab91db850e78273e2f (diff)
add Skyloong/GK61_V1 keyboard (#21364)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Sergey Vlasov <sigprof@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Fix and Matrix Diagram (#21255)
Diffstat (limited to 'keyboards/skyloong/gk61/v1/config.h')
-rw-r--r--keyboards/skyloong/gk61/v1/config.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/keyboards/skyloong/gk61/v1/config.h b/keyboards/skyloong/gk61/v1/config.h
new file mode 100644
index 0000000000..f648bf80d4
--- /dev/null
+++ b/keyboards/skyloong/gk61/v1/config.h
@@ -0,0 +1,39 @@
+/* Copyright 2021 JZ-Skyloong (@JZ-Skyloong)
+ *
+ * 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
+
+/*
+ * RGB matrix driver config (CKLED2001)
+ *
+ * This is a 7-bit address, that gets left-shifted and bit 0
+ * set to 0 for write, 1 for read (as per I2C protocol)
+ * The address will vary depending on your wiring:
+ * 00 <-> GND
+ * 01 <-> SCL
+ * 10 <-> SDA
+ * 11 <-> VCC
+ * ADDR/CS represents A1:A0 of the 7-bit address.
+ * The result is: 0b11101(ADDR/CS)
+ */
+#define DRIVER_ADDR_1 0b1110100
+
+#define DRIVER_COUNT 1
+#define RGB_MATRIX_LED_COUNT 64
+
+#define RGB_MATRIX_FRAMEBUFFER_EFFECTS //Enable frame effects
+#define RGB_MATRIX_KEYPRESSES //Reacts to keypress
+#define RGB_DISABLE_WHEN_USB_SUSPENDED //turn off effects when suspended
+#define SDB C1