change q5 snled to ckled
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
#include "ansi.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to SNLED27351 manual for these locations
|
||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
@@ -8,119 +8,116 @@
|
||||
"pid": "0x0150",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "snled27351"
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
"bootloader": "stm32-dfu",
|
||||
"layouts": {
|
||||
"LAYOUT_ansi_100": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [0, 14], "x": 14, "y": 0},
|
||||
{"matrix": [0, 15], "x": 15.5, "y": 0},
|
||||
{"matrix": [0, 16], "x": 16.5, "y": 0},
|
||||
{"matrix": [0, 17], "x": 17.5, "y": 0},
|
||||
{"matrix": [3, 12], "x": 18.5, "y": 0},
|
||||
{"matrix":[0, 0], "x":0, "y":0},
|
||||
{"matrix":[0, 1], "x":1, "y":0},
|
||||
{"matrix":[0, 2], "x":2, "y":0},
|
||||
{"matrix":[0, 3], "x":3, "y":0},
|
||||
{"matrix":[0, 4], "x":4, "y":0},
|
||||
{"matrix":[0, 5], "x":5, "y":0},
|
||||
{"matrix":[0, 6], "x":6, "y":0},
|
||||
{"matrix":[0, 7], "x":7, "y":0},
|
||||
{"matrix":[0, 8], "x":8, "y":0},
|
||||
{"matrix":[0, 9], "x":9, "y":0},
|
||||
{"matrix":[0, 10], "x":10, "y":0},
|
||||
{"matrix":[0, 11], "x":11, "y":0},
|
||||
{"matrix":[0, 12], "x":12, "y":0},
|
||||
{"matrix":[0, 13], "x":13, "y":0},
|
||||
{"matrix":[0, 14], "x":14, "y":0},
|
||||
{"matrix":[0, 15], "x":15.5, "y":0},
|
||||
{"matrix":[0, 16], "x":16.5, "y":0},
|
||||
{"matrix":[0, 17], "x":17.5, "y":0},
|
||||
{"matrix":[3, 12], "x":18.5, "y":0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"matrix": [1, 15], "x": 15.5, "y": 1.25},
|
||||
{"matrix": [1, 16], "x": 16.5, "y": 1.25},
|
||||
{"matrix": [1, 17], "x": 17.5, "y": 1.25},
|
||||
{"matrix": [3, 14], "x": 18.5, "y": 1.25},
|
||||
{"matrix":[1, 0], "x":0, "y":1.25},
|
||||
{"matrix":[1, 1], "x":1, "y":1.25},
|
||||
{"matrix":[1, 2], "x":2, "y":1.25},
|
||||
{"matrix":[1, 3], "x":3, "y":1.25},
|
||||
{"matrix":[1, 4], "x":4, "y":1.25},
|
||||
{"matrix":[1, 5], "x":5, "y":1.25},
|
||||
{"matrix":[1, 6], "x":6, "y":1.25},
|
||||
{"matrix":[1, 7], "x":7, "y":1.25},
|
||||
{"matrix":[1, 8], "x":8, "y":1.25},
|
||||
{"matrix":[1, 9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,15], "x":15.5, "y":1.25},
|
||||
{"matrix":[1,16], "x":16.5, "y":1.25},
|
||||
{"matrix":[1,17], "x":17.5, "y":1.25},
|
||||
{"matrix":[3,14], "x":18.5, "y":1.25},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
|
||||
{"matrix": [2, 15], "x": 15.5, "y": 2.25},
|
||||
{"matrix": [2, 16], "x": 16.5, "y": 2.25},
|
||||
{"matrix": [2, 17], "x": 17.5, "y": 2.25},
|
||||
{"matrix":[2, 0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2, 1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2, 2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2, 3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2, 4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2, 5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2, 6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2, 7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2, 8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2, 9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,13], "x":13.5, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,15], "x":15.5, "y":2.25},
|
||||
{"matrix":[2,16], "x":16.5, "y":2.25},
|
||||
{"matrix":[2,17], "x":17.5, "y":2.25},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"matrix": [3, 13], "x": 12.75, "y": 3.25, "w": 2.25},
|
||||
{"matrix": [3, 15], "x": 15.5, "y": 3.25},
|
||||
{"matrix": [3, 16], "x": 16.5, "y": 3.25},
|
||||
{"matrix": [3, 17], "x": 17.5, "y": 3.25},
|
||||
{"matrix": [2, 14], "x": 18.5, "y": 2.25, "h": 2},
|
||||
{"matrix":[3, 0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3, 1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3, 2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3, 3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3, 4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3, 5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3, 6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3, 7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3, 8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3, 9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25, "w":2.25},
|
||||
{"matrix":[3,15], "x":15.5, "y":3.25},
|
||||
{"matrix":[3,16], "x":16.5, "y":3.25},
|
||||
{"matrix":[3,17], "x":17.5, "y":3.25},
|
||||
{"matrix":[2,14], "x":18.5, "y":2.25, "h":2},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4.25},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4.25},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4.25},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4.25},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4.25},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4.25},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4.25},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4.25},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4.25},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4.25},
|
||||
{"matrix": [4, 13], "x": 12.25, "y": 4.25, "w": 1.75},
|
||||
{"matrix": [4, 14], "x": 14.25, "y": 4.5},
|
||||
{"matrix": [4, 15], "x": 15.5, "y": 4.25},
|
||||
{"matrix": [4, 16], "x": 16.5, "y": 4.25},
|
||||
{"matrix": [4, 17], "x": 17.5, "y": 4.25},
|
||||
{"matrix":[4, 0], "x":0, "y":4.25, "w":2.25},
|
||||
{"matrix":[4, 2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4, 3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4, 4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4, 5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4, 6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4, 7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4, 8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4, 9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":1.75},
|
||||
{"matrix":[4,14], "x":14.25, "y":4.5},
|
||||
{"matrix":[4,15], "x":15.5, "y":4.25},
|
||||
{"matrix":[4,16], "x":16.5, "y":4.25},
|
||||
{"matrix":[4,17], "x":17.5, "y":4.25},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5.25},
|
||||
{"matrix": [5, 11], "x": 11, "y": 5.25},
|
||||
{"matrix": [5, 12], "x": 12, "y": 5.25},
|
||||
{"matrix": [5, 13], "x": 13.25, "y": 5.5},
|
||||
{"matrix": [5, 14], "x": 14.25, "y": 5.5},
|
||||
{"matrix": [5, 15], "x": 15.25, "y": 5.5},
|
||||
{"matrix": [5, 16], "x": 16.5, "y": 5.25},
|
||||
{"matrix": [5, 17], "x": 17.5, "y": 5.25},
|
||||
{"matrix": [5, 5], "x": 18.5, "y": 4.25, "h": 2}
|
||||
{"matrix":[5, 0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25},
|
||||
{"matrix":[5,11], "x":11, "y":5.25},
|
||||
{"matrix":[5,12], "x":12, "y":5.25},
|
||||
{"matrix":[5,13], "x":13.25, "y":5.5},
|
||||
{"matrix":[5,14], "x":14.25, "y":5.5},
|
||||
{"matrix":[5,15], "x":15.25, "y":5.5},
|
||||
{"matrix":[5,16], "x":16.5, "y":5.25},
|
||||
{"matrix":[5,17], "x":17.5, "y":5.25},
|
||||
{"matrix":[5, 5], "x":18.5, "y":4.25, "h":2}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,8 +12,14 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
DIP_SWITCH_ENABLE = yes
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = CKLED2001
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
OPENRGB_ENABLE = yes
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
# custom matrix setup
|
||||
CUSTOM_MATRIX = lite
|
||||
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
#include "ansi_encoder.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
// clang-format off
|
||||
|
||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to SNLED27351 manual for these locations
|
||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
@@ -8,9 +8,6 @@
|
||||
"pid": "0x0151",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "snled27351"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "C14", "pin_b": "A2"}
|
||||
@@ -21,109 +18,109 @@
|
||||
"layouts": {
|
||||
"LAYOUT_ansi_98": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 7], "x": 6.5, "y": 0},
|
||||
{"matrix": [0, 8], "x": 7.5, "y": 0},
|
||||
{"matrix": [0, 9], "x": 8.5, "y": 0},
|
||||
{"matrix": [0, 10], "x": 9.5, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [0, 14], "x": 14, "y": 0},
|
||||
{"matrix": [0, 15], "x": 15.25, "y": 0},
|
||||
{"matrix": [0, 16], "x": 16.25, "y": 0},
|
||||
{"matrix": [0, 17], "x": 17.25, "y": 0},
|
||||
{"matrix": [3, 12], "x": 18.5, "y": 0},
|
||||
{"matrix":[0, 0], "x":0, "y":0},
|
||||
{"matrix":[0, 2], "x":2, "y":0},
|
||||
{"matrix":[0, 3], "x":3, "y":0},
|
||||
{"matrix":[0, 4], "x":4, "y":0},
|
||||
{"matrix":[0, 5], "x":5, "y":0},
|
||||
{"matrix":[0, 7], "x":6.5, "y":0},
|
||||
{"matrix":[0, 8], "x":7.5, "y":0},
|
||||
{"matrix":[0, 9], "x":8.5, "y":0},
|
||||
{"matrix":[0, 10], "x":9.5, "y":0},
|
||||
{"matrix":[0, 11], "x":11, "y":0},
|
||||
{"matrix":[0, 12], "x":12, "y":0},
|
||||
{"matrix":[0, 13], "x":13, "y":0},
|
||||
{"matrix":[0, 14], "x":14, "y":0},
|
||||
{"matrix":[0, 15], "x":15.25, "y":0},
|
||||
{"matrix":[0, 16], "x":16.25, "y":0},
|
||||
{"matrix":[0, 17], "x":17.25, "y":0},
|
||||
{"matrix":[3, 12], "x":18.5, "y":0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"matrix": [1, 15], "x": 15.5, "y": 1.25},
|
||||
{"matrix": [1, 16], "x": 16.5, "y": 1.25},
|
||||
{"matrix": [1, 17], "x": 17.5, "y": 1.25},
|
||||
{"matrix": [3, 14], "x": 18.5, "y": 1.25},
|
||||
{"matrix":[1, 0], "x":0, "y":1.25},
|
||||
{"matrix":[1, 1], "x":1, "y":1.25},
|
||||
{"matrix":[1, 2], "x":2, "y":1.25},
|
||||
{"matrix":[1, 3], "x":3, "y":1.25},
|
||||
{"matrix":[1, 4], "x":4, "y":1.25},
|
||||
{"matrix":[1, 5], "x":5, "y":1.25},
|
||||
{"matrix":[1, 6], "x":6, "y":1.25},
|
||||
{"matrix":[1, 7], "x":7, "y":1.25},
|
||||
{"matrix":[1, 8], "x":8, "y":1.25},
|
||||
{"matrix":[1, 9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,15], "x":15.5, "y":1.25},
|
||||
{"matrix":[1,16], "x":16.5, "y":1.25},
|
||||
{"matrix":[1,17], "x":17.5, "y":1.25},
|
||||
{"matrix":[3,14], "x":18.5, "y":1.25},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
|
||||
{"matrix": [2, 15], "x": 15.5, "y": 2.25},
|
||||
{"matrix": [2, 16], "x": 16.5, "y": 2.25},
|
||||
{"matrix": [2, 17], "x": 17.5, "y": 2.25},
|
||||
{"matrix":[2, 0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2, 1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2, 2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2, 3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2, 4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2, 5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2, 6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2, 7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2, 8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2, 9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,13], "x":13.5, "y":2.25, "w":1.5},
|
||||
{"matrix":[2,15], "x":15.5, "y":2.25},
|
||||
{"matrix":[2,16], "x":16.5, "y":2.25},
|
||||
{"matrix":[2,17], "x":17.5, "y":2.25},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"matrix": [3, 13], "x": 12.75, "y": 3.25, "w": 2.25},
|
||||
{"matrix": [3, 15], "x": 15.5, "y": 3.25},
|
||||
{"matrix": [3, 16], "x": 16.5, "y": 3.25},
|
||||
{"matrix": [3, 17], "x": 17.5, "y": 3.25},
|
||||
{"matrix": [2, 14], "x": 18.5, "y": 2.25, "h": 2},
|
||||
{"matrix":[3, 0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3, 1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3, 2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3, 3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3, 4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3, 5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3, 6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3, 7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3, 8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3, 9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25, "w":2.25},
|
||||
{"matrix":[3,15], "x":15.5, "y":3.25},
|
||||
{"matrix":[3,16], "x":16.5, "y":3.25},
|
||||
{"matrix":[3,17], "x":17.5, "y":3.25},
|
||||
{"matrix":[2,14], "x":18.5, "y":2.25, "h":2},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4.25},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4.25},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4.25},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4.25},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4.25},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4.25},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4.25},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4.25},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4.25},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4.25},
|
||||
{"matrix": [4, 13], "x": 12.25, "y": 4.25, "w": 1.75},
|
||||
{"matrix": [4, 14], "x": 14.25, "y": 4.5},
|
||||
{"matrix": [4, 15], "x": 15.5, "y": 4.25},
|
||||
{"matrix": [4, 16], "x": 16.5, "y": 4.25},
|
||||
{"matrix": [4, 17], "x": 17.5, "y": 4.25},
|
||||
{"matrix":[4, 0], "x":0, "y":4.25, "w":2.25},
|
||||
{"matrix":[4, 2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4, 3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4, 4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4, 5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4, 6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4, 7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4, 8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4, 9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":1.75},
|
||||
{"matrix":[4,14], "x":14.25, "y":4.5},
|
||||
{"matrix":[4,15], "x":15.5, "y":4.25},
|
||||
{"matrix":[4,16], "x":16.5, "y":4.25},
|
||||
{"matrix":[4,17], "x":17.5, "y":4.25},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5.25},
|
||||
{"matrix": [5, 11], "x": 11, "y": 5.25},
|
||||
{"matrix": [5, 12], "x": 12, "y": 5.25},
|
||||
{"matrix": [5, 13], "x": 13.25, "y": 5.5},
|
||||
{"matrix": [5, 14], "x": 14.25, "y": 5.5},
|
||||
{"matrix": [5, 15], "x": 15.25, "y": 5.5},
|
||||
{"matrix": [5, 16], "x": 16.5, "y": 5.25},
|
||||
{"matrix": [5, 17], "x": 17.5, "y": 5.25},
|
||||
{"matrix": [5, 5], "x": 18.5, "y": 4.25, "h": 2}
|
||||
{"matrix":[5, 0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25},
|
||||
{"matrix":[5,11], "x":11, "y":5.25},
|
||||
{"matrix":[5,12], "x":12, "y":5.25},
|
||||
{"matrix":[5,13], "x":13.25, "y":5.5},
|
||||
{"matrix":[5,14], "x":14.25, "y":5.5},
|
||||
{"matrix":[5,15], "x":15.25, "y":5.5},
|
||||
{"matrix":[5,16], "x":16.5, "y":5.25},
|
||||
{"matrix":[5,17], "x":17.5, "y":5.25},
|
||||
{"matrix":[5, 5], "x":18.5, "y":4.25, "h":2}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
const uint16_t PROGMEM encoder_map[][1][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[MAC_FN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
|
||||
@@ -58,7 +58,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
const uint16_t PROGMEM encoder_map[][1][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[MAC_FN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
|
||||
@@ -57,7 +57,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
const uint16_t PROGMEM encoder_map[][1][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[MAC_FN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
|
||||
@@ -13,8 +13,14 @@ AUDIO_ENABLE = no # Audio output
|
||||
ENCODER_ENABLE = yes # Enable Encoder
|
||||
DIP_SWITCH_ENABLE = yes
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = CKLED2001
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
OPENRGB_ENABLE = yes
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
# custom matrix setup
|
||||
CUSTOM_MATRIX = lite
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@
|
||||
#define DIODE_DIRECTION ROW2COL
|
||||
|
||||
/* RGB Matrix Driver Configuration */
|
||||
#define SNLED27351_DRIVER_COUNT 2
|
||||
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_VDDIO
|
||||
#define SNLED27351_I2C_ADDRESS_2 SNLED27351_I2C_ADDRESS_GND
|
||||
#define DRIVER_COUNT 2
|
||||
#define DRIVER_ADDR_1 0b1110111
|
||||
#define DRIVER_ADDR_2 0b1110100
|
||||
|
||||
#define SNLED27351_CURRENT_TUNE \
|
||||
#define CKLED2001_CURRENT_TUNE \
|
||||
{ 0xB6, 0xB6, 0x56, 0xB6, 0xB6, 0x56, 0xB6, 0xB6, 0x56, 0xB6, 0xB6, 0x56 }
|
||||
|
||||
/* DIP switch */
|
||||
|
||||
+101
-104
@@ -8,120 +8,117 @@
|
||||
"pid": "0x0152",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "snled27351"
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
"bootloader": "stm32-dfu",
|
||||
"layouts": {
|
||||
"LAYOUT_iso_101": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [0, 14], "x": 14, "y": 0},
|
||||
{"matrix": [0, 15], "x": 15.5, "y": 0},
|
||||
{"matrix": [0, 16], "x": 16.5, "y": 0},
|
||||
{"matrix": [0, 17], "x": 17.5, "y": 0},
|
||||
{"matrix": [3, 12], "x": 18.5, "y": 0},
|
||||
{"matrix":[0, 0], "x":0, "y":0},
|
||||
{"matrix":[0, 1], "x":1, "y":0},
|
||||
{"matrix":[0, 2], "x":2, "y":0},
|
||||
{"matrix":[0, 3], "x":3, "y":0},
|
||||
{"matrix":[0, 4], "x":4, "y":0},
|
||||
{"matrix":[0, 5], "x":5, "y":0},
|
||||
{"matrix":[0, 6], "x":6, "y":0},
|
||||
{"matrix":[0, 7], "x":7, "y":0},
|
||||
{"matrix":[0, 8], "x":8, "y":0},
|
||||
{"matrix":[0, 9], "x":9, "y":0},
|
||||
{"matrix":[0, 10], "x":10, "y":0},
|
||||
{"matrix":[0, 11], "x":11, "y":0},
|
||||
{"matrix":[0, 12], "x":12, "y":0},
|
||||
{"matrix":[0, 13], "x":13, "y":0},
|
||||
{"matrix":[0, 14], "x":14, "y":0},
|
||||
{"matrix":[0, 15], "x":15.5, "y":0},
|
||||
{"matrix":[0, 16], "x":16.5, "y":0},
|
||||
{"matrix":[0, 17], "x":17.5, "y":0},
|
||||
{"matrix":[3, 12], "x":18.5, "y":0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"matrix": [1, 15], "x": 15.5, "y": 1.25},
|
||||
{"matrix": [1, 16], "x": 16.5, "y": 1.25},
|
||||
{"matrix": [1, 17], "x": 17.5, "y": 1.25},
|
||||
{"matrix": [3, 14], "x": 18.5, "y": 1.25},
|
||||
{"matrix":[1, 0], "x":0, "y":1.25},
|
||||
{"matrix":[1, 1], "x":1, "y":1.25},
|
||||
{"matrix":[1, 2], "x":2, "y":1.25},
|
||||
{"matrix":[1, 3], "x":3, "y":1.25},
|
||||
{"matrix":[1, 4], "x":4, "y":1.25},
|
||||
{"matrix":[1, 5], "x":5, "y":1.25},
|
||||
{"matrix":[1, 6], "x":6, "y":1.25},
|
||||
{"matrix":[1, 7], "x":7, "y":1.25},
|
||||
{"matrix":[1, 8], "x":8, "y":1.25},
|
||||
{"matrix":[1, 9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,15], "x":15.5, "y":1.25},
|
||||
{"matrix":[1,16], "x":16.5, "y":1.25},
|
||||
{"matrix":[1,17], "x":17.5, "y":1.25},
|
||||
{"matrix":[3,14], "x":18.5, "y":1.25},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"matrix": [2, 15], "x": 15.5, "y": 2.25},
|
||||
{"matrix": [2, 16], "x": 16.5, "y": 2.25},
|
||||
{"matrix": [2, 17], "x": 17.5, "y": 2.25},
|
||||
{"matrix":[2, 0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2, 1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2, 2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2, 3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2, 4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2, 5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2, 6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2, 7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2, 8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2, 9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,15], "x":15.5, "y":2.25},
|
||||
{"matrix":[2,16], "x":16.5, "y":2.25},
|
||||
{"matrix":[2,17], "x":17.5, "y":2.25},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"matrix": [3, 13], "x": 12.75, "y": 3.25},
|
||||
{"matrix": [2, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h": 2},
|
||||
{"matrix": [3, 15], "x": 15.5, "y": 3.25},
|
||||
{"matrix": [3, 16], "x": 16.5, "y": 3.25},
|
||||
{"matrix": [3, 17], "x": 17.5, "y": 3.25},
|
||||
{"matrix": [2, 14], "x": 18.5, "y": 2.25, "h": 2},
|
||||
{"matrix":[3, 0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3, 1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3, 2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3, 3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3, 4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3, 5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3, 6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3, 7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3, 8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3, 9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25},
|
||||
{"matrix":[2,13], "x":13.75, "y":2.25, "w":1.25, "h":2},
|
||||
{"matrix":[3,15], "x":15.5, "y":3.25},
|
||||
{"matrix":[3,16], "x":16.5, "y":3.25},
|
||||
{"matrix":[3,17], "x":17.5, "y":3.25},
|
||||
{"matrix":[2,14], "x":18.5, "y":2.25, "h":2},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
|
||||
{"matrix": [4, 1], "x": 1.25, "y": 4.25},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4.25},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4.25},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4.25},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4.25},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4.25},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4.25},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4.25},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4.25},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4.25},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4.25},
|
||||
{"matrix": [4, 13], "x": 12.25, "y": 4.25, "w": 1.75},
|
||||
{"matrix": [4, 14], "x": 14.25, "y": 4.5},
|
||||
{"matrix": [4, 15], "x": 15.5, "y": 4.25},
|
||||
{"matrix": [4, 16], "x": 16.5, "y": 4.25},
|
||||
{"matrix": [4, 17], "x": 17.5, "y": 4.25},
|
||||
{"matrix":[4, 0], "x":0, "y":4.25, "w":1.25},
|
||||
{"matrix":[4, 1], "x":1.25, "y":4.25},
|
||||
{"matrix":[4, 2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4, 3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4, 4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4, 5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4, 6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4, 7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4, 8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4, 9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":1.75},
|
||||
{"matrix":[4,14], "x":14.25, "y":4.5},
|
||||
{"matrix":[4,15], "x":15.5, "y":4.25},
|
||||
{"matrix":[4,16], "x":16.5, "y":4.25},
|
||||
{"matrix":[4,17], "x":17.5, "y":4.25},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5.25},
|
||||
{"matrix": [5, 11], "x": 11, "y": 5.25},
|
||||
{"matrix": [5, 12], "x": 12, "y": 5.25},
|
||||
{"matrix": [5, 13], "x": 13.25, "y": 5.5},
|
||||
{"matrix": [5, 14], "x": 14.25, "y": 5.5},
|
||||
{"matrix": [5, 15], "x": 15.25, "y": 5.5},
|
||||
{"matrix": [5, 16], "x": 16.5, "y": 5.25},
|
||||
{"matrix": [5, 17], "x": 17.5, "y": 5.25},
|
||||
{"matrix": [5, 5], "x": 18.5, "y": 4.25, "h": 2}
|
||||
{"matrix":[5, 0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25},
|
||||
{"matrix":[5,11], "x":11, "y":5.25},
|
||||
{"matrix":[5,12], "x":12, "y":5.25},
|
||||
{"matrix":[5,13], "x":13.25, "y":5.5},
|
||||
{"matrix":[5,14], "x":14.25, "y":5.5},
|
||||
{"matrix":[5,15], "x":15.25, "y":5.5},
|
||||
{"matrix":[5,16], "x":16.5, "y":5.25},
|
||||
{"matrix":[5,17], "x":17.5, "y":5.25},
|
||||
{"matrix":[5, 5], "x":18.5, "y":4.25, "h":2}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
#include "iso.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
// clang-format off
|
||||
|
||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to SNLED27351 manual for these locations
|
||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
@@ -12,8 +12,14 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
DIP_SWITCH_ENABLE = yes
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = CKLED2001
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
OPENRGB_ENABLE = yes
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
# custom matrix setup
|
||||
CUSTOM_MATRIX = lite
|
||||
|
||||
|
||||
@@ -8,9 +8,6 @@
|
||||
"pid": "0x0153",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "snled27351"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "C14", "pin_b": "A2"}
|
||||
@@ -21,110 +18,110 @@
|
||||
"layouts": {
|
||||
"LAYOUT_iso_99": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"matrix": [0, 7], "x": 6.5, "y": 0},
|
||||
{"matrix": [0, 8], "x": 7.5, "y": 0},
|
||||
{"matrix": [0, 9], "x": 8.5, "y": 0},
|
||||
{"matrix": [0, 10], "x": 9.5, "y": 0},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0},
|
||||
{"matrix": [0, 13], "x": 13, "y": 0},
|
||||
{"matrix": [0, 14], "x": 14, "y": 0},
|
||||
{"matrix": [0, 15], "x": 15.25, "y": 0},
|
||||
{"matrix": [0, 16], "x": 16.25, "y": 0},
|
||||
{"matrix": [0, 17], "x": 17.25, "y": 0},
|
||||
{"matrix": [3, 12], "x": 18.5, "y": 0},
|
||||
{"matrix":[0, 0], "x":0, "y":0},
|
||||
{"matrix":[0, 2], "x":2, "y":0},
|
||||
{"matrix":[0, 3], "x":3, "y":0},
|
||||
{"matrix":[0, 4], "x":4, "y":0},
|
||||
{"matrix":[0, 5], "x":5, "y":0},
|
||||
{"matrix":[0, 7], "x":6.5, "y":0},
|
||||
{"matrix":[0, 8], "x":7.5, "y":0},
|
||||
{"matrix":[0, 9], "x":8.5, "y":0},
|
||||
{"matrix":[0, 10], "x":9.5, "y":0},
|
||||
{"matrix":[0, 11], "x":11, "y":0},
|
||||
{"matrix":[0, 12], "x":12, "y":0},
|
||||
{"matrix":[0, 13], "x":13, "y":0},
|
||||
{"matrix":[0, 14], "x":14, "y":0},
|
||||
{"matrix":[0, 15], "x":15.25, "y":0},
|
||||
{"matrix":[0, 16], "x":16.25, "y":0},
|
||||
{"matrix":[0, 17], "x":17.25, "y":0},
|
||||
{"matrix":[3, 12], "x":18.5, "y":0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"matrix": [1, 15], "x": 15.5, "y": 1.25},
|
||||
{"matrix": [1, 16], "x": 16.5, "y": 1.25},
|
||||
{"matrix": [1, 17], "x": 17.5, "y": 1.25},
|
||||
{"matrix": [3, 14], "x": 18.5, "y": 1.25},
|
||||
{"matrix":[1, 0], "x":0, "y":1.25},
|
||||
{"matrix":[1, 1], "x":1, "y":1.25},
|
||||
{"matrix":[1, 2], "x":2, "y":1.25},
|
||||
{"matrix":[1, 3], "x":3, "y":1.25},
|
||||
{"matrix":[1, 4], "x":4, "y":1.25},
|
||||
{"matrix":[1, 5], "x":5, "y":1.25},
|
||||
{"matrix":[1, 6], "x":6, "y":1.25},
|
||||
{"matrix":[1, 7], "x":7, "y":1.25},
|
||||
{"matrix":[1, 8], "x":8, "y":1.25},
|
||||
{"matrix":[1, 9], "x":9, "y":1.25},
|
||||
{"matrix":[1,10], "x":10, "y":1.25},
|
||||
{"matrix":[1,11], "x":11, "y":1.25},
|
||||
{"matrix":[1,12], "x":12, "y":1.25},
|
||||
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
|
||||
{"matrix":[1,15], "x":15.5, "y":1.25},
|
||||
{"matrix":[1,16], "x":16.5, "y":1.25},
|
||||
{"matrix":[1,17], "x":17.5, "y":1.25},
|
||||
{"matrix":[3,14], "x":18.5, "y":1.25},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"matrix": [2, 15], "x": 15.5, "y": 2.25},
|
||||
{"matrix": [2, 16], "x": 16.5, "y": 2.25},
|
||||
{"matrix": [2, 17], "x": 17.5, "y": 2.25},
|
||||
{"matrix":[2, 0], "x":0, "y":2.25, "w":1.5},
|
||||
{"matrix":[2, 1], "x":1.5, "y":2.25},
|
||||
{"matrix":[2, 2], "x":2.5, "y":2.25},
|
||||
{"matrix":[2, 3], "x":3.5, "y":2.25},
|
||||
{"matrix":[2, 4], "x":4.5, "y":2.25},
|
||||
{"matrix":[2, 5], "x":5.5, "y":2.25},
|
||||
{"matrix":[2, 6], "x":6.5, "y":2.25},
|
||||
{"matrix":[2, 7], "x":7.5, "y":2.25},
|
||||
{"matrix":[2, 8], "x":8.5, "y":2.25},
|
||||
{"matrix":[2, 9], "x":9.5, "y":2.25},
|
||||
{"matrix":[2,10], "x":10.5, "y":2.25},
|
||||
{"matrix":[2,11], "x":11.5, "y":2.25},
|
||||
{"matrix":[2,12], "x":12.5, "y":2.25},
|
||||
{"matrix":[2,15], "x":15.5, "y":2.25},
|
||||
{"matrix":[2,16], "x":16.5, "y":2.25},
|
||||
{"matrix":[2,17], "x":17.5, "y":2.25},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"matrix": [3, 13], "x": 12.75, "y": 3.25},
|
||||
{"matrix": [2, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h": 2},
|
||||
{"matrix": [3, 15], "x": 15.5, "y": 3.25},
|
||||
{"matrix": [3, 16], "x": 16.5, "y": 3.25},
|
||||
{"matrix": [3, 17], "x": 17.5, "y": 3.25},
|
||||
{"matrix": [2, 14], "x": 18.5, "y": 2.25, "h": 2},
|
||||
{"matrix":[3, 0], "x":0, "y":3.25, "w":1.75},
|
||||
{"matrix":[3, 1], "x":1.75, "y":3.25},
|
||||
{"matrix":[3, 2], "x":2.75, "y":3.25},
|
||||
{"matrix":[3, 3], "x":3.75, "y":3.25},
|
||||
{"matrix":[3, 4], "x":4.75, "y":3.25},
|
||||
{"matrix":[3, 5], "x":5.75, "y":3.25},
|
||||
{"matrix":[3, 6], "x":6.75, "y":3.25},
|
||||
{"matrix":[3, 7], "x":7.75, "y":3.25},
|
||||
{"matrix":[3, 8], "x":8.75, "y":3.25},
|
||||
{"matrix":[3, 9], "x":9.75, "y":3.25},
|
||||
{"matrix":[3,10], "x":10.75, "y":3.25},
|
||||
{"matrix":[3,11], "x":11.75, "y":3.25},
|
||||
{"matrix":[3,13], "x":12.75, "y":3.25},
|
||||
{"matrix":[2,13], "x":13.75, "y":2.25, "w":1.25, "h":2},
|
||||
{"matrix":[3,15], "x":15.5, "y":3.25},
|
||||
{"matrix":[3,16], "x":16.5, "y":3.25},
|
||||
{"matrix":[3,17], "x":17.5, "y":3.25},
|
||||
{"matrix":[2,14], "x":18.5, "y":2.25, "h":2},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
|
||||
{"matrix": [4, 1], "x": 1.25, "y": 4.25},
|
||||
{"matrix": [4, 2], "x": 2.25, "y": 4.25},
|
||||
{"matrix": [4, 3], "x": 3.25, "y": 4.25},
|
||||
{"matrix": [4, 4], "x": 4.25, "y": 4.25},
|
||||
{"matrix": [4, 5], "x": 5.25, "y": 4.25},
|
||||
{"matrix": [4, 6], "x": 6.25, "y": 4.25},
|
||||
{"matrix": [4, 7], "x": 7.25, "y": 4.25},
|
||||
{"matrix": [4, 8], "x": 8.25, "y": 4.25},
|
||||
{"matrix": [4, 9], "x": 9.25, "y": 4.25},
|
||||
{"matrix": [4, 10], "x": 10.25, "y": 4.25},
|
||||
{"matrix": [4, 11], "x": 11.25, "y": 4.25},
|
||||
{"matrix": [4, 13], "x": 12.25, "y": 4.25, "w": 1.75},
|
||||
{"matrix": [4, 14], "x": 14.25, "y": 4.5},
|
||||
{"matrix": [4, 15], "x": 15.5, "y": 4.25},
|
||||
{"matrix": [4, 16], "x": 16.5, "y": 4.25},
|
||||
{"matrix": [4, 17], "x": 17.5, "y": 4.25},
|
||||
{"matrix":[4, 0], "x":0, "y":4.25, "w":1.25},
|
||||
{"matrix":[4, 1], "x":1.25, "y":4.25},
|
||||
{"matrix":[4, 2], "x":2.25, "y":4.25},
|
||||
{"matrix":[4, 3], "x":3.25, "y":4.25},
|
||||
{"matrix":[4, 4], "x":4.25, "y":4.25},
|
||||
{"matrix":[4, 5], "x":5.25, "y":4.25},
|
||||
{"matrix":[4, 6], "x":6.25, "y":4.25},
|
||||
{"matrix":[4, 7], "x":7.25, "y":4.25},
|
||||
{"matrix":[4, 8], "x":8.25, "y":4.25},
|
||||
{"matrix":[4, 9], "x":9.25, "y":4.25},
|
||||
{"matrix":[4,10], "x":10.25, "y":4.25},
|
||||
{"matrix":[4,11], "x":11.25, "y":4.25},
|
||||
{"matrix":[4,13], "x":12.25, "y":4.25, "w":1.75},
|
||||
{"matrix":[4,14], "x":14.25, "y":4.5},
|
||||
{"matrix":[4,15], "x":15.5, "y":4.25},
|
||||
{"matrix":[4,16], "x":16.5, "y":4.25},
|
||||
{"matrix":[4,17], "x":17.5, "y":4.25},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5.25},
|
||||
{"matrix": [5, 11], "x": 11, "y": 5.25},
|
||||
{"matrix": [5, 12], "x": 12, "y": 5.25},
|
||||
{"matrix": [5, 13], "x": 13.25, "y": 5.5},
|
||||
{"matrix": [5, 14], "x": 14.25, "y": 5.5},
|
||||
{"matrix": [5, 15], "x": 15.25, "y": 5.5},
|
||||
{"matrix": [5, 16], "x": 16.5, "y": 5.25},
|
||||
{"matrix": [5, 17], "x": 17.5, "y": 5.25},
|
||||
{"matrix": [5, 5], "x": 18.5, "y": 4.25, "h": 2}
|
||||
{"matrix":[5, 0], "x":0, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 1], "x":1.25, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 2], "x":2.5, "y":5.25, "w":1.25},
|
||||
{"matrix":[5, 6], "x":3.75, "y":5.25, "w":6.25},
|
||||
{"matrix":[5,10], "x":10, "y":5.25},
|
||||
{"matrix":[5,11], "x":11, "y":5.25},
|
||||
{"matrix":[5,12], "x":12, "y":5.25},
|
||||
{"matrix":[5,13], "x":13.25, "y":5.5},
|
||||
{"matrix":[5,14], "x":14.25, "y":5.5},
|
||||
{"matrix":[5,15], "x":15.25, "y":5.5},
|
||||
{"matrix":[5,16], "x":16.5, "y":5.25},
|
||||
{"matrix":[5,17], "x":17.5, "y":5.25},
|
||||
{"matrix":[5, 5], "x":18.5, "y":4.25, "h":2}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
#include "iso_encoder.h"
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
// clang-format off
|
||||
|
||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to SNLED27351 manual for these locations
|
||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
@@ -57,7 +57,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
const uint16_t PROGMEM encoder_map[][1][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[MAC_FN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
|
||||
@@ -58,7 +58,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
const uint16_t PROGMEM encoder_map[][1][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[MAC_FN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
|
||||
@@ -57,7 +57,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
const uint16_t PROGMEM encoder_map[][1][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
[MAC_FN] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
||||
|
||||
@@ -13,8 +13,14 @@ AUDIO_ENABLE = no # Audio output
|
||||
ENCODER_ENABLE = yes # Enable Encoder
|
||||
DIP_SWITCH_ENABLE = yes
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = CKLED2001
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
OPENRGB_ENABLE = yes
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
# custom matrix setup
|
||||
CUSTOM_MATRIX = lite
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "quantum.h"
|
||||
#include "q5.h"
|
||||
|
||||
const matrix_row_t matrix_mask[] = {
|
||||
0b111111111111111111,
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#if defined(KEYBOARD_keychron_q5_ansi)
|
||||
# include "ansi.h"
|
||||
#elif defined(KEYBOARD_keychron_q5_ansi_encoder)
|
||||
# include "ansi_encoder.h"
|
||||
#elif defined(KEYBOARD_keychron_q5_iso)
|
||||
# include "iso.h"
|
||||
#elif defined(KEYBOARD_keychron_q5_iso_encoder)
|
||||
# include "iso_encoder.h"
|
||||
#endif
|
||||
Reference in New Issue
Block a user