diff options
author | QMK Bot <hello@qmk.fm> | 2021-07-12 15:53:05 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-07-12 15:53:05 +0000 |
commit | 9d282d81ac8890018a9da9fda02afba9261c7ac4 (patch) | |
tree | e086f7b3afcdf74b44af2aefadb4b224288ef437 | |
parent | 9c74fd14bc9777ec45cc93fa57bf83ab17b988db (diff) | |
parent | c024acd75243034d7d70d3bfb2fd6d3eacc0b62a (diff) | |
download | qmk_firmware-9d282d81ac8890018a9da9fda02afba9261c7ac4.tar.gz qmk_firmware-9d282d81ac8890018a9da9fda02afba9261c7ac4.zip |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | keyboards/bastardkb/tbkmini/config.h | 15 | ||||
-rw-r--r-- | keyboards/bastardkb/tbkmini/rules.mk | 7 | ||||
-rw-r--r-- | keyboards/bastardkb/tbkmini/tbkmini.c | 43 |
3 files changed, 61 insertions, 4 deletions
diff --git a/keyboards/bastardkb/tbkmini/config.h b/keyboards/bastardkb/tbkmini/config.h index 9aee4d5f9..adda76174 100644 --- a/keyboards/bastardkb/tbkmini/config.h +++ b/keyboards/bastardkb/tbkmini/config.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> | 2 | * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> |
3 | * | 3 | * |
4 | * This program is free software: you can redistribute it and/or modify | 4 | * This program is free software: you can redistribute it and/or modify |
@@ -45,3 +45,16 @@ | |||
45 | #define F_SCL 400000L | 45 | #define F_SCL 400000L |
46 | #define USB_POLLING_INTERVAL_MS 1 | 46 | #define USB_POLLING_INTERVAL_MS 1 |
47 | #define MASTER_RIGHT | 47 | #define MASTER_RIGHT |
48 | |||
49 | // RGB matrix support | ||
50 | #ifdef RGB_MATRIX_ENABLE | ||
51 | # define SPLIT_TRANSPORT_MIRROR | ||
52 | # define DRIVER_LED_TOTAL 42 // Number of LEDs | ||
53 | # define RGB_MATRIX_SPLIT { 21, 21 } | ||
54 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 | ||
55 | # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | ||
56 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | ||
57 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true | ||
58 | # endif | ||
59 | # define RGB_MATRIX_KEYPRESSES | ||
60 | #endif | ||
diff --git a/keyboards/bastardkb/tbkmini/rules.mk b/keyboards/bastardkb/tbkmini/rules.mk index 76f9cf11a..f76568dad 100644 --- a/keyboards/bastardkb/tbkmini/rules.mk +++ b/keyboards/bastardkb/tbkmini/rules.mk | |||
@@ -17,7 +17,10 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
18 | NKRO_ENABLE = yes # USB Nkey Rollover | 18 | NKRO_ENABLE = yes # USB Nkey Rollover |
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
21 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
22 | RGB_MATRIX_ENABLE = yes # Enable keyboard RGB matrix (do not use together with RGBLIGHT_ENABLE) | ||
23 | RGB_MATRIX_DRIVER = WS2812 # RGB matrix driver support | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 24 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
22 | AUDIO_ENABLE = no # Audio output | 25 | AUDIO_ENABLE = no # Audio output |
23 | SPLIT_KEYBOARD = yes | 26 | SPLIT_KEYBOARD = yes |
@@ -25,7 +28,7 @@ TAP_DANCE_ENABLE = no | |||
25 | LTO_ENABLE = yes | 28 | LTO_ENABLE = yes |
26 | 29 | ||
27 | AUDIO_SUPPORTED = no | 30 | AUDIO_SUPPORTED = no |
28 | RGB_MATRIX_SUPPORTED = no | 31 | RGB_MATRIX_SUPPORTED = yes |
29 | RGBLIGHT_SUPPORTED = yes | 32 | RGBLIGHT_SUPPORTED = yes |
30 | 33 | ||
31 | LAYOUTS = split_3x6_3 | 34 | LAYOUTS = split_3x6_3 |
diff --git a/keyboards/bastardkb/tbkmini/tbkmini.c b/keyboards/bastardkb/tbkmini/tbkmini.c index b932401c0..7bbd374c0 100644 --- a/keyboards/bastardkb/tbkmini/tbkmini.c +++ b/keyboards/bastardkb/tbkmini/tbkmini.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> | 2 | * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> |
3 | * | 3 | * |
4 | * This program is free software: you can redistribute it and/or modify | 4 | * This program is free software: you can redistribute it and/or modify |
@@ -16,3 +16,44 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "tbkmini.h" | 18 | #include "tbkmini.h" |
19 | |||
20 | #ifdef RGB_MATRIX_ENABLE | ||
21 | led_config_t g_led_config = { { | ||
22 | // left | ||
23 | { 0, 5, 6, 11, 12, 15 }, | ||
24 | { 1, 4, 7, 10, 13, 16 }, | ||
25 | { 2, 3, 8, 9, 14, 17 }, | ||
26 | { NO_LED, 18, NO_LED, 19, 20, NO_LED }, | ||
27 | // right | ||
28 | { 21, 26, 27, 32, 33, 36 }, | ||
29 | { 22, 25, 28, 31, 34, 37 }, | ||
30 | { 23, 24, 29, 30, 35, 38 }, | ||
31 | { NO_LED, 39, NO_LED, 40, 41, NO_LED } | ||
32 | }, { | ||
33 | // left | ||
34 | { 0, 0 }, { 0, 21 }, { 0, 42 }, // col 1 | ||
35 | { 20, 42 }, { 20, 21 }, { 20, 0 }, // col 2 | ||
36 | { 41, 0 }, { 41, 21 }, { 41, 42 }, | ||
37 | { 61, 42 }, { 61, 21 }, { 61, 0 }, | ||
38 | { 81, 0 }, { 81, 21 }, { 81, 42 }, | ||
39 | { 102, 0 }, { 102, 21 }, { 102, 42 }, | ||
40 | { 61, 64 }, { 81, 64 }, { 102, 64 }, // left thumb cluster | ||
41 | // right | ||
42 | { 224, 0 }, { 224, 21 }, { 224, 42 }, // col 12 | ||
43 | { 204, 42 }, { 204, 21 }, { 204, 0 }, // col 11 | ||
44 | { 183, 0 }, { 183, 21 }, { 183, 42 }, | ||
45 | { 163, 42 }, { 163, 21 }, { 163, 0 }, | ||
46 | { 142, 0 }, { 142, 21 }, { 142, 42 }, | ||
47 | { 122, 0 }, { 122, 21 }, { 122, 42 }, | ||
48 | { 163, 64 }, { 142, 64 }, { 122, 64 } // right thumb cluster | ||
49 | }, { | ||
50 | // left | ||
51 | 2, 2, 2, 4, 4, 4, 4, 4, 4, | ||
52 | 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
53 | 2, 2, 2, | ||
54 | // right | ||
55 | 2, 2, 2, 4, 4, 4, 4, 4, 4, | ||
56 | 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
57 | 2, 2, 2 | ||
58 | } }; | ||
59 | #endif | ||