diff options
author | adophoxia <100170946+adophoxia@users.noreply.github.com> | 2023-04-03 20:26:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 13:26:54 +1000 |
commit | 147d397e341c0ad5c9a075159ea434e82b2785cc (patch) | |
tree | f2fa5ac4087b1e9ffdc63d3f6d125dabcb1572e8 /keyboards/keychron/q0/rev_0131 | |
parent | c224cb9605b22cfb3e97e3537243082b4224e5c0 (diff) |
Move Keychron Q0 and Q0 Plus data-driven configuration; `keychron` keymap `rules.mk` cleanup (#20168)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/keychron/q0/rev_0131')
-rw-r--r-- | keyboards/keychron/q0/rev_0131/info.json | 75 | ||||
-rw-r--r-- | keyboards/keychron/q0/rev_0131/rev_0131.c | 33 | ||||
-rw-r--r-- | keyboards/keychron/q0/rev_0131/rules.mk | 16 |
3 files changed, 74 insertions, 50 deletions
diff --git a/keyboards/keychron/q0/rev_0131/info.json b/keyboards/keychron/q0/rev_0131/info.json index d447502cba..d25a2e6d9d 100644 --- a/keyboards/keychron/q0/rev_0131/info.json +++ b/keyboards/keychron/q0/rev_0131/info.json @@ -6,12 +6,26 @@ "usb": { "vid": "0x3434", "pid": "0x0131", - "device_version": "1.0.0" + "device_version": "1.0.0", + "force_nkro": true }, "matrix_pins": { "cols": ["C14", "C15", "A0", "A1", "A2"], "rows": ["B5", "B4", "B3", "A15", "A14", "A13"] }, + "features": { + "audio": false, + "backlight": false, + "bootmagic": true, + "command": false, + "console": false, + "encoder": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true, + "rgblight": false + }, "diode_direction": "ROW2COL", "encoder": { "rotary": [ @@ -23,6 +37,65 @@ }, "processor": "STM32L432", "bootloader": "stm32-dfu", + "rgb_matrix": { + "driver": "CKLED2001", + "animations": { + "band_spiral_val": true, + "breathing": true, + "cycle_all": true, + "cycle_left_right": true, + "cycle_up_down": true, + "rainbow_moving_chevron": true, + "cycle_out_in": true, + "cycle_out_in_dual": true, + "cycle_pinwheel": true, + "cycle_spiral": true, + "dual_beacon": true, + "rainbow_beacon": true, + "jellybean_raindrops": true, + "pixel_rain": true, + "typing_heatmap": true, + "digital_rain": true, + "solid_reactive_simple": true, + "solid_reactive_multiwide": true, + "solid_reactive_multinexus": true, + "splash": true, + "solid_splash": true + }, + "layout": [ + {"flags": 1, "matrix":[0,1], "x":56, "y":0}, + {"flags": 1, "matrix":[0,2], "x":112, "y":0}, + {"flags": 1, "matrix":[0,3], "x":168, "y":0}, + {"flags": 1, "matrix":[0,4], "x":224, "y":0}, + + {"flags": 4, "matrix":[1,0], "x":0, "y":15}, + {"flags": 8, "matrix":[1,1], "x":56, "y":15}, + {"flags": 4, "matrix":[1,2], "x":112, "y":15}, + {"flags": 4, "matrix":[1,3], "x":168, "y":15}, + {"flags": 4, "matrix":[1,4], "x":224, "y":15}, + + {"flags": 4, "matrix":[2,0], "x":0, "y":27}, + {"flags": 4, "matrix":[2,1], "x":56, "y":27}, + {"flags": 4, "matrix":[2,2], "x":112, "y":27}, + {"flags": 4, "matrix":[2,3], "x":168, "y":27}, + {"flags": 4, "matrix":[2,4], "x":224, "y":34}, + + {"flags": 4, "matrix":[3,0], "x":0, "y":40}, + {"flags": 4, "matrix":[3,1], "x":56, "y":40}, + {"flags": 4, "matrix":[3,2], "x":112, "y":40}, + {"flags": 4, "matrix":[3,3], "x":168, "y":40}, + + {"flags": 4, "matrix":[4,0], "x":0, "y":52}, + {"flags": 4, "matrix":[4,1], "x":56, "y":52}, + {"flags": 4, "matrix":[4,2], "x":112, "y":52}, + {"flags": 4, "matrix":[4,3], "x":168, "y":52}, + {"flags": 4, "matrix":[4,4], "x":224, "y":58}, + + {"flags": 4, "matrix":[5,0], "x":0, "y":64}, + {"flags": 4, "matrix":[5,1], "x":84, "y":64}, + {"flags": 1, "matrix":[5,3], "x":168, "y":64} + ] + }, "layouts": { "LAYOUT_numpad_6x5": { "layout": [ diff --git a/keyboards/keychron/q0/rev_0131/rev_0131.c b/keyboards/keychron/q0/rev_0131/rev_0131.c index c67a460557..282c511ce2 100644 --- a/keyboards/keychron/q0/rev_0131/rev_0131.c +++ b/keyboards/keychron/q0/rev_0131/rev_0131.c @@ -59,37 +59,4 @@ const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = { {0, F_7, D_7, E_7}, {0, F_9, D_9, E_9}, }; - -#define __ NO_LED - -led_config_t g_led_config = { - { - // Key Matrix to LED Index - { __, 0, 1, 2, 3 }, - { 4, 5, 6, 7, 8 }, - { 9, 10, 11, 12, 13 }, - { 14, 15, 16, 17, __ }, - { 18, 19, 20, 21, 22 }, - { 23, 24, __, 25, __ }, - }, - { - // LED Index to Physical Position - {56,0}, {112,0}, {168,0}, {224,0}, - {0,15}, {56,15}, {112,15}, {168,15}, {224,15}, - {0,27}, {56,27}, {112,27}, {168,27}, {224,34}, - {0,40}, {56,40}, {112,40}, {168,40}, - {0,52}, {56,52}, {112,52}, {168,52}, {224,58}, - {0,64}, {84,64}, {168,64}, - }, - { - // LED Index to Flag - 1, 1, 1, 1, - 4, 8, 4, 4, 4, - 4, 4, 4, 4, 4, - 4, 4, 4, 4, - 4, 4, 4, 4, 4, - 4, 4, 1, - } -}; - #endif // RGB_MATRIX_ENABLE diff --git a/keyboards/keychron/q0/rev_0131/rules.mk b/keyboards/keychron/q0/rev_0131/rules.mk index d5f04c34d2..4eebc33437 100644 --- a/keyboards/keychron/q0/rev_0131/rules.mk +++ b/keyboards/keychron/q0/rev_0131/rules.mk @@ -1,19 +1,3 @@ -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable USB N-key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes # Enable encoder -DIP_SWITCH_ENABLE = no -RGB_MATRIX_ENABLE = yes -RGB_MATRIX_DRIVER = CKLED2001 EEPROM_DRIVER = wear_leveling WEAR_LEVELING_DRIVER = embedded_flash |