From 2ba0a75c2f7a1218f9bf2a1cdb5ef0280f9f68ab Mon Sep 17 00:00:00 2001 From: skyloong <92424712+JZ-Skyloong@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:01:10 +0800 Subject: add Skyloong/GK61_V1 keyboard (#21364) Co-authored-by: Joel Challis Co-authored-by: Sergey Vlasov Co-authored-by: Drashna Jaelre Co-authored-by: Duncan Sutherland Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Fix and Matrix Diagram (#21255) --- keyboards/skyloong/gk61/v1/config.h | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 keyboards/skyloong/gk61/v1/config.h (limited to 'keyboards/skyloong/gk61/v1/config.h') 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 . + */ +#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 -- cgit v1.2.3