diff options
Diffstat (limited to 'keyboards')
105 files changed, 1442 insertions, 271 deletions
diff --git a/keyboards/anavi/macropad8/keymaps/default/config.h b/keyboards/anavi/macropad8/keymaps/default/config.h new file mode 100644 index 000000000..dd687cad5 --- /dev/null +++ b/keyboards/anavi/macropad8/keymaps/default/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2021 QMK | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #define LAYER_STATE_8BIT | ||
diff --git a/keyboards/basekeys/trifecta/config.h b/keyboards/basekeys/trifecta/config.h index 8a9529126..28c9c18fb 100644 --- a/keyboards/basekeys/trifecta/config.h +++ b/keyboards/basekeys/trifecta/config.h | |||
| @@ -80,11 +80,11 @@ | |||
| 80 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 80 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 81 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 81 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 82 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 82 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 83 | //# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 83 | //# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 84 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 84 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 85 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 85 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 86 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 86 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 87 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 87 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 88 | # define RGB_MATRIX_HUE_STEP 8 | 88 | # define RGB_MATRIX_HUE_STEP 8 |
| 89 | # define RGB_MATRIX_SAT_STEP 8 | 89 | # define RGB_MATRIX_SAT_STEP 8 |
| 90 | # define RGB_MATRIX_VAL_STEP 8 | 90 | # define RGB_MATRIX_VAL_STEP 8 |
diff --git a/keyboards/bm40hsrgb/config.h b/keyboards/bm40hsrgb/config.h index 84d0950d5..8ef9a78c7 100755 --- a/keyboards/bm40hsrgb/config.h +++ b/keyboards/bm40hsrgb/config.h | |||
| @@ -51,5 +51,5 @@ | |||
| 51 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 51 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 52 | #endif | 52 | #endif |
| 53 | #ifdef RGB_MATRIX_ENABLE | 53 | #ifdef RGB_MATRIX_ENABLE |
| 54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 54 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 55 | #endif | 55 | #endif |
diff --git a/keyboards/bm68rgb/keymaps/peepeetee/config.h b/keyboards/bm68rgb/keymaps/peepeetee/config.h index 53eebce7f..aada255cd 100644 --- a/keyboards/bm68rgb/keymaps/peepeetee/config.h +++ b/keyboards/bm68rgb/keymaps/peepeetee/config.h | |||
| @@ -64,7 +64,7 @@ | |||
| 64 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 64 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
| 65 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 65 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
| 66 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 66 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 67 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 67 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 68 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 68 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 69 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 69 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 70 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations | 70 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations |
diff --git a/keyboards/boardsource/the_mark/config.h b/keyboards/boardsource/the_mark/config.h index 5888452ce..9ca598b40 100644 --- a/keyboards/boardsource/the_mark/config.h +++ b/keyboards/boardsource/the_mark/config.h | |||
| @@ -59,7 +59,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 59 | #define DRIVER_LED_TOTAL 24 // Number of LEDs | 59 | #define DRIVER_LED_TOTAL 24 // Number of LEDs |
| 60 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 60 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
| 61 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 61 | # ifndef RGB_DISABLE_WHEN_USB_SUSPENDED |
| 62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 63 | # endif | 63 | # endif |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
diff --git a/keyboards/crkbd/keymaps/devdev/config.h b/keyboards/crkbd/keymaps/devdev/config.h index 793c7b020..c858f8f2d 100644 --- a/keyboards/crkbd/keymaps/devdev/config.h +++ b/keyboards/crkbd/keymaps/devdev/config.h | |||
| @@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 32 | 32 | ||
| 33 | #define CUSTOM_FONT | 33 | #define CUSTOM_FONT |
| 34 | 34 | ||
| 35 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding | 35 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding |
| 36 | 36 | ||
| 37 | #define TAPPING_FORCE_HOLD | 37 | #define TAPPING_FORCE_HOLD |
| 38 | #define TAPPING_TERM 200 | 38 | #define TAPPING_TERM 200 |
| @@ -43,7 +43,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 43 | 43 | ||
| 44 | #ifdef RGBLIGHT_ENABLE | 44 | #ifdef RGBLIGHT_ENABLE |
| 45 | #undef RGBLED_NUM | 45 | #undef RGBLED_NUM |
| 46 | 46 | ||
| 47 | //#define RGBLIGHT_ANIMATIONS | 47 | //#define RGBLIGHT_ANIMATIONS |
| 48 | #define RGBLIGHT_EFFECT_BREATHING | 48 | #define RGBLIGHT_EFFECT_BREATHING |
| 49 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 49 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
| @@ -55,11 +55,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 55 | //#define RGBLIGHT_EFFECT_RGB_TEST | 55 | //#define RGBLIGHT_EFFECT_RGB_TEST |
| 56 | //#define RGBLIGHT_EFFECT_ALTERNATING | 56 | //#define RGBLIGHT_EFFECT_ALTERNATING |
| 57 | //#define RGBLIGHT_EFFECT_TWINKLE | 57 | //#define RGBLIGHT_EFFECT_TWINKLE |
| 58 | 58 | ||
| 59 | //#define RGBLED_NUM 54 | 59 | //#define RGBLED_NUM 54 |
| 60 | //#define RGBLED_SPLIT 27 | 60 | //#define RGBLED_SPLIT 27 |
| 61 | //#define RGBLED_SPLIT { 27, 27 } // haven't figured out how to use this yet | 61 | //#define RGBLED_SPLIT { 27, 27 } // haven't figured out how to use this yet |
| 62 | 62 | ||
| 63 | #define RGBLED_NUM 27 | 63 | #define RGBLED_NUM 27 |
| 64 | #define RGBLIGHT_LIMIT_VAL 120 | 64 | #define RGBLIGHT_LIMIT_VAL 120 |
| 65 | #define RGBLIGHT_HUE_STEP 10 | 65 | #define RGBLIGHT_HUE_STEP 10 |
| @@ -71,11 +71,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 71 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 71 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 72 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 72 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 73 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 73 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 74 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 74 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 75 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 75 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 76 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 76 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 77 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 77 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 78 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 78 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 79 | 79 | ||
| 80 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT | 80 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT |
| 81 | 81 | ||
diff --git a/keyboards/crkbd/keymaps/gotham/config.h b/keyboards/crkbd/keymaps/gotham/config.h index dd58a0fe0..05b04e0aa 100644 --- a/keyboards/crkbd/keymaps/gotham/config.h +++ b/keyboards/crkbd/keymaps/gotham/config.h | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | 39 | ||
| 40 | #ifdef RGB_MATRIX_ENABLE | 40 | #ifdef RGB_MATRIX_ENABLE |
| 41 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 41 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 42 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 42 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 43 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 43 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 44 | # define RGB_MATRIX_HUE_STEP 32 | 44 | # define RGB_MATRIX_HUE_STEP 32 |
| 45 | # define RGB_MATRIX_SAT_STEP 64 | 45 | # define RGB_MATRIX_SAT_STEP 64 |
diff --git a/keyboards/crkbd/keymaps/kidbrazil/config.h b/keyboards/crkbd/keymaps/kidbrazil/config.h index be1777e57..752ea862e 100644 --- a/keyboards/crkbd/keymaps/kidbrazil/config.h +++ b/keyboards/crkbd/keymaps/kidbrazil/config.h | |||
| @@ -56,7 +56,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 56 | //# define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 56 | //# define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 57 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 57 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 58 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 58 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 59 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 59 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 60 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 60 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 61 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 61 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 62 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 62 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/crkbd/keymaps/rpbaptist/config.h b/keyboards/crkbd/keymaps/rpbaptist/config.h index 6bd16725f..9e5f75c36 100644 --- a/keyboards/crkbd/keymaps/rpbaptist/config.h +++ b/keyboards/crkbd/keymaps/rpbaptist/config.h | |||
| @@ -42,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 42 | #define NO_ACTION_ONESHOT | 42 | #define NO_ACTION_ONESHOT |
| 43 | 43 | ||
| 44 | #ifdef RGB_MATRIX_ENABLE | 44 | #ifdef RGB_MATRIX_ENABLE |
| 45 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 45 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 46 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 | 46 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 |
| 47 | 47 | ||
| 48 | # define RGB_MATRIX_HUE_STEP 8 | 48 | # define RGB_MATRIX_HUE_STEP 8 |
diff --git a/keyboards/crkbd/keymaps/soundmonster/config.h b/keyboards/crkbd/keymaps/soundmonster/config.h index 1e58af3ab..8235b4869 100644 --- a/keyboards/crkbd/keymaps/soundmonster/config.h +++ b/keyboards/crkbd/keymaps/soundmonster/config.h | |||
| @@ -59,11 +59,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 59 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 59 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 60 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 60 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 61 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 61 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 62 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 63 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 63 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 64 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 64 | # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 65 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 65 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 66 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 66 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 67 | # define RGB_MATRIX_HUE_STEP 8 | 67 | # define RGB_MATRIX_HUE_STEP 8 |
| 68 | # define RGB_MATRIX_SAT_STEP 8 | 68 | # define RGB_MATRIX_SAT_STEP 8 |
| 69 | # define RGB_MATRIX_VAL_STEP 8 | 69 | # define RGB_MATRIX_VAL_STEP 8 |
diff --git a/keyboards/crkbd/readme.md b/keyboards/crkbd/readme.md index 1e5bfb39a..f0b5672cf 100644 --- a/keyboards/crkbd/readme.md +++ b/keyboards/crkbd/readme.md | |||
| @@ -38,7 +38,7 @@ And in your `config.h` file, add the following: | |||
| 38 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 38 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 39 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 39 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 40 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 40 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 41 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 41 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 43 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 43 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 44 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 44 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/dztech/dz60rgb/v1/config.h b/keyboards/dztech/dz60rgb/v1/config.h index 6e5b3da6f..f6ee7c4e2 100644 --- a/keyboards/dztech/dz60rgb/v1/config.h +++ b/keyboards/dztech/dz60rgb/v1/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
| 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/dztech/dz60rgb/v2/config.h b/keyboards/dztech/dz60rgb/v2/config.h index df84fff59..6108e9903 100644 --- a/keyboards/dztech/dz60rgb/v2/config.h +++ b/keyboards/dztech/dz60rgb/v2/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
| 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/dztech/dz60rgb_ansi/v1/config.h b/keyboards/dztech/dz60rgb_ansi/v1/config.h index 8710f8d07..dc2a6f4bc 100644 --- a/keyboards/dztech/dz60rgb_ansi/v1/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v1/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
| 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/dztech/dz60rgb_ansi/v2/config.h b/keyboards/dztech/dz60rgb_ansi/v2/config.h index f3c9b73fb..6c1e00682 100644 --- a/keyboards/dztech/dz60rgb_ansi/v2/config.h +++ b/keyboards/dztech/dz60rgb_ansi/v2/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
| 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/dztech/dz60rgb_wkl/v1/config.h b/keyboards/dztech/dz60rgb_wkl/v1/config.h index 9c630c75b..12317c2d3 100644 --- a/keyboards/dztech/dz60rgb_wkl/v1/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v1/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
| 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/dztech/dz60rgb_wkl/v2/config.h b/keyboards/dztech/dz60rgb_wkl/v2/config.h index a6145c274..945b591ce 100644 --- a/keyboards/dztech/dz60rgb_wkl/v2/config.h +++ b/keyboards/dztech/dz60rgb_wkl/v2/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | # define RGB_MATRIX_KEYPRESSES | 41 | # define RGB_MATRIX_KEYPRESSES |
| 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 43 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/dztech/dz65rgb/v1/config.h b/keyboards/dztech/dz65rgb/v1/config.h index cd4747716..1b0aa5205 100644 --- a/keyboards/dztech/dz65rgb/v1/config.h +++ b/keyboards/dztech/dz65rgb/v1/config.h | |||
| @@ -36,9 +36,9 @@ | |||
| 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 37 | # define DEBOUNCE 3 | 37 | # define DEBOUNCE 3 |
| 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 40 | # define RGB_MATRIX_KEYPRESSES | 40 | # define RGB_MATRIX_KEYPRESSES |
| 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 42 | # define DISABLE_RGB_MATRIX_BAND_SAT | 42 | # define DISABLE_RGB_MATRIX_BAND_SAT |
| 43 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 43 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
| 44 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 44 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/dztech/dz65rgb/v2/config.h b/keyboards/dztech/dz65rgb/v2/config.h index ccd74275a..117fb1e3e 100644 --- a/keyboards/dztech/dz65rgb/v2/config.h +++ b/keyboards/dztech/dz65rgb/v2/config.h | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 37 | # define DEBOUNCE 3 | 37 | # define DEBOUNCE 3 |
| 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 40 | # define RGB_MATRIX_KEYPRESSES | 40 | # define RGB_MATRIX_KEYPRESSES |
| 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 42 | # define DISABLE_RGB_MATRIX_BAND_SAT | 42 | # define DISABLE_RGB_MATRIX_BAND_SAT |
diff --git a/keyboards/ergodox_ez/config.h b/keyboards/ergodox_ez/config.h index bc63f6108..9dcfc341e 100644 --- a/keyboards/ergodox_ez/config.h +++ b/keyboards/ergodox_ez/config.h | |||
| @@ -129,7 +129,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 129 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 | 129 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 |
| 130 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 130 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 131 | 131 | ||
| 132 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 132 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 133 | 133 | ||
| 134 | // #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF | 134 | // #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF |
| 135 | /* #define RGBLIGHT_COLOR_LAYER_1 0x00, 0x00, 0xFF */ | 135 | /* #define RGBLIGHT_COLOR_LAYER_1 0x00, 0x00, 0xFF */ |
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h b/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h index a0ba655ed..da2082078 100644 --- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h +++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/config.h | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | #undef IGNORE_MOD_TAP_INTERRUPT | 14 | #undef IGNORE_MOD_TAP_INTERRUPT |
| 15 | #define IGNORE_MOD_TAP_INTERRUPT | 15 | #define IGNORE_MOD_TAP_INTERRUPT |
| 16 | 16 | ||
| 17 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 17 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 18 | 18 | ||
| 19 | #undef FORCE_NKRO | 19 | #undef FORCE_NKRO |
| 20 | #define FORCE_NKRO | 20 | #define FORCE_NKRO |
diff --git a/keyboards/ergodox_infinity/config.h b/keyboards/ergodox_infinity/config.h index a64f3f4a1..a00c593ee 100644 --- a/keyboards/ergodox_infinity/config.h +++ b/keyboards/ergodox_infinity/config.h | |||
| @@ -62,6 +62,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 62 | #define LED_BRIGHTNESS_LO 100 | 62 | #define LED_BRIGHTNESS_LO 100 |
| 63 | #define LED_BRIGHTNESS_HI 255 | 63 | #define LED_BRIGHTNESS_HI 255 |
| 64 | 64 | ||
| 65 | /* LED matrix driver */ | ||
| 66 | #define LED_DRIVER_ADDR_1 0x74 | ||
| 67 | #define LED_DRIVER_COUNT 1 | ||
| 68 | #define DRIVER_LED_TOTAL 76 | ||
| 69 | #define LED_MATRIX_SPLIT { 38, 38 } | ||
| 70 | #define LED_DISABLE_WHEN_USB_SUSPENDED | ||
| 71 | |||
| 72 | /* i2c (for LED matrix) */ | ||
| 73 | #define I2C1_CLOCK_SPEED 400000 | ||
| 74 | #define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
| 75 | #define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
| 76 | #define I2C1_BANK GPIOB | ||
| 77 | #define I2C1_SCL 0 | ||
| 78 | #define I2C1_SDA 1 | ||
| 79 | |||
| 65 | /* define if matrix has ghost */ | 80 | /* define if matrix has ghost */ |
| 66 | //#define MATRIX_HAS_GHOST | 81 | //#define MATRIX_HAS_GHOST |
| 67 | 82 | ||
diff --git a/keyboards/ergodox_infinity/ergodox_infinity.c b/keyboards/ergodox_infinity/ergodox_infinity.c index 97b628470..da8ea311a 100644 --- a/keyboards/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/ergodox_infinity/ergodox_infinity.c | |||
| @@ -1,20 +1,45 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include QMK_KEYBOARD_H |
| 2 | #include <ch.h> | 2 | #include <ch.h> |
| 3 | #include <hal.h> | 3 | #include <hal.h> |
| 4 | #include <string.h> | ||
| 5 | #include "eeconfig.h" | ||
| 4 | #include "serial_link/system/serial_link.h" | 6 | #include "serial_link/system/serial_link.h" |
| 5 | #ifdef VISUALIZER_ENABLE | 7 | #ifdef VISUALIZER_ENABLE |
| 6 | #include "lcd_backlight.h" | 8 | # include "lcd_backlight.h" |
| 7 | #endif | 9 | #endif |
| 8 | 10 | ||
| 9 | #ifdef WPM_ENABLE | 11 | #if (defined(LED_MATRIX_ENABLE) || defined(WPM_ENABLE)) |
| 10 | # include "serial_link/protocol/transport.h" | 12 | # include "serial_link/protocol/transport.h" |
| 11 | # include "wpm.h" | 13 | |
| 14 | # ifdef LED_MATRIX_ENABLE | ||
| 15 | MASTER_TO_ALL_SLAVES_OBJECT(led_matrix, led_eeconfig_t); | ||
| 16 | MASTER_TO_ALL_SLAVES_OBJECT(led_suspend_state, bool); | ||
| 17 | static led_eeconfig_t last_sent_led_matrix; | ||
| 18 | static uint16_t led_matrix_sent_timer = 0; | ||
| 19 | |||
| 20 | void send_led_suspend_state(void) { | ||
| 21 | if (is_serial_link_master()) { | ||
| 22 | *begin_write_led_suspend_state() = led_matrix_get_suspend_state(); | ||
| 23 | end_write_led_suspend_state(); | ||
| 24 | } | ||
| 25 | } | ||
| 26 | # endif | ||
| 12 | 27 | ||
| 28 | # ifdef WPM_ENABLE | ||
| 29 | # include "wpm.h" | ||
| 13 | MASTER_TO_ALL_SLAVES_OBJECT(current_wpm, uint8_t); | 30 | MASTER_TO_ALL_SLAVES_OBJECT(current_wpm, uint8_t); |
| 14 | static remote_object_t* remote_objects[] = { | 31 | static uint8_t last_sent_wpm = 0; |
| 32 | # endif | ||
| 33 | |||
| 34 | static remote_object_t *remote_objects[] = { | ||
| 35 | # ifdef LED_MATRIX_ENABLE | ||
| 36 | REMOTE_OBJECT(led_matrix), | ||
| 37 | REMOTE_OBJECT(led_suspend_state), | ||
| 38 | # endif | ||
| 39 | # ifdef WPM_ENABLE | ||
| 15 | REMOTE_OBJECT(current_wpm), | 40 | REMOTE_OBJECT(current_wpm), |
| 41 | # endif | ||
| 16 | }; | 42 | }; |
| 17 | static uint8_t last_sent_wpm = 0; | ||
| 18 | #endif | 43 | #endif |
| 19 | 44 | ||
| 20 | void init_serial_link_hal(void) { | 45 | void init_serial_link_hal(void) { |
| @@ -52,7 +77,7 @@ void init_serial_link_hal(void) { | |||
| 52 | void lcd_backlight_hal_init(void) { | 77 | void lcd_backlight_hal_init(void) { |
| 53 | // Setup Backlight | 78 | // Setup Backlight |
| 54 | SIM->SCGC6 |= SIM_SCGC6_FTM0; | 79 | SIM->SCGC6 |= SIM_SCGC6_FTM0; |
| 55 | FTM0->CNT = 0; // Reset counter | 80 | FTM0->CNT = 0; // Reset counter |
| 56 | 81 | ||
| 57 | // PWM Period | 82 | // PWM Period |
| 58 | // 16-bit maximum | 83 | // 16-bit maximum |
| @@ -60,25 +85,25 @@ void lcd_backlight_hal_init(void) { | |||
| 60 | 85 | ||
| 61 | // Set FTM to PWM output - Edge Aligned, Low-true pulses | 86 | // Set FTM to PWM output - Edge Aligned, Low-true pulses |
| 62 | #define CNSC_MODE FTM_SC_CPWMS | FTM_SC_PS(4) | FTM_SC_CLKS(0) | 87 | #define CNSC_MODE FTM_SC_CPWMS | FTM_SC_PS(4) | FTM_SC_CLKS(0) |
| 63 | CHANNEL_RED.CnSC = CNSC_MODE; | 88 | CHANNEL_RED.CnSC = CNSC_MODE; |
| 64 | CHANNEL_GREEN.CnSC = CNSC_MODE; | 89 | CHANNEL_GREEN.CnSC = CNSC_MODE; |
| 65 | CHANNEL_BLUE.CnSC = CNSC_MODE; | 90 | CHANNEL_BLUE.CnSC = CNSC_MODE; |
| 66 | 91 | ||
| 67 | // System clock, /w prescalar setting | 92 | // System clock, /w prescalar setting |
| 68 | FTM0->SC = FTM_SC_CLKS(1) | FTM_SC_PS(PRESCALAR_DEFINE); | 93 | FTM0->SC = FTM_SC_CLKS(1) | FTM_SC_PS(PRESCALAR_DEFINE); |
| 69 | 94 | ||
| 70 | CHANNEL_RED.CnV = 0; | 95 | CHANNEL_RED.CnV = 0; |
| 71 | CHANNEL_GREEN.CnV = 0; | 96 | CHANNEL_GREEN.CnV = 0; |
| 72 | CHANNEL_BLUE.CnV = 0; | 97 | CHANNEL_BLUE.CnV = 0; |
| 73 | 98 | ||
| 74 | RGB_PORT_GPIO->PDDR |= (1 << RED_PIN); | 99 | RGB_PORT_GPIO->PDDR |= (1 << RED_PIN); |
| 75 | RGB_PORT_GPIO->PDDR |= (1 << GREEN_PIN); | 100 | RGB_PORT_GPIO->PDDR |= (1 << GREEN_PIN); |
| 76 | RGB_PORT_GPIO->PDDR |= (1 << BLUE_PIN); | 101 | RGB_PORT_GPIO->PDDR |= (1 << BLUE_PIN); |
| 77 | 102 | ||
| 78 | #define RGB_MODE PORTx_PCRn_SRE | PORTx_PCRn_DSE | PORTx_PCRn_MUX(4) | 103 | #define RGB_MODE PORTx_PCRn_SRE | PORTx_PCRn_DSE | PORTx_PCRn_MUX(4) |
| 79 | RGB_PORT->PCR[RED_PIN] = RGB_MODE; | 104 | RGB_PORT->PCR[RED_PIN] = RGB_MODE; |
| 80 | RGB_PORT->PCR[GREEN_PIN] = RGB_MODE; | 105 | RGB_PORT->PCR[GREEN_PIN] = RGB_MODE; |
| 81 | RGB_PORT->PCR[BLUE_PIN] = RGB_MODE; | 106 | RGB_PORT->PCR[BLUE_PIN] = RGB_MODE; |
| 82 | } | 107 | } |
| 83 | 108 | ||
| 84 | static uint16_t cie_lightness(uint16_t v) { | 109 | static uint16_t cie_lightness(uint16_t v) { |
| @@ -89,12 +114,11 @@ static uint16_t cie_lightness(uint16_t v) { | |||
| 89 | // Y = (L* / 902.3) if L* <= 8 | 114 | // Y = (L* / 902.3) if L* <= 8 |
| 90 | // Y = ((L* + 16) / 116)^3 if L* > 8 | 115 | // Y = ((L* + 16) / 116)^3 if L* > 8 |
| 91 | 116 | ||
| 92 | float l = 100.0f * (v / 65535.0f); | 117 | float l = 100.0f * (v / 65535.0f); |
| 93 | float y = 0.0f; | 118 | float y = 0.0f; |
| 94 | if (l <= 8.0f) { | 119 | if (l <= 8.0f) { |
| 95 | y = l / 902.3; | 120 | y = l / 902.3; |
| 96 | } | 121 | } else { |
| 97 | else { | ||
| 98 | y = ((l + 16.0f) / 116.0f); | 122 | y = ((l + 16.0f) / 116.0f); |
| 99 | y = y * y * y; | 123 | y = y * y * y; |
| 100 | if (y > 1.0f) { | 124 | if (y > 1.0f) { |
| @@ -105,31 +129,48 @@ static uint16_t cie_lightness(uint16_t v) { | |||
| 105 | } | 129 | } |
| 106 | 130 | ||
| 107 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b) { | 131 | void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b) { |
| 108 | CHANNEL_RED.CnV = cie_lightness(r); | 132 | CHANNEL_RED.CnV = cie_lightness(r); |
| 109 | CHANNEL_GREEN.CnV = cie_lightness(g); | 133 | CHANNEL_GREEN.CnV = cie_lightness(g); |
| 110 | CHANNEL_BLUE.CnV = cie_lightness(b); | 134 | CHANNEL_BLUE.CnV = cie_lightness(b); |
| 111 | } | 135 | } |
| 112 | 136 | ||
| 113 | __attribute__ ((weak)) | 137 | __attribute__ ((weak)) void matrix_init_user(void) {} |
| 114 | void matrix_init_user(void) { | 138 | |
| 115 | } | 139 | __attribute__ ((weak)) void matrix_scan_user(void) {} |
| 116 | 140 | ||
| 117 | __attribute__ ((weak)) | ||
| 118 | void matrix_scan_user(void) { | ||
| 119 | } | ||
| 120 | 141 | ||
| 142 | void keyboard_pre_init_kb() { | ||
| 143 | #ifdef LED_MATRIX_ENABLE | ||
| 144 | // Turn on LED controller | ||
| 145 | setPinOutput(B16); | ||
| 146 | writePinHigh(B16); | ||
| 147 | #endif | ||
| 148 | keyboard_pre_init_user(); | ||
| 149 | } | ||
| 121 | 150 | ||
| 122 | void matrix_init_kb(void) { | 151 | void matrix_init_kb(void) { |
| 123 | // put your keyboard start-up code here | 152 | // put your keyboard start-up code here |
| 124 | // runs once when the firmware starts up | 153 | // runs once when the firmware starts up |
| 125 | 154 | ||
| 155 | #ifdef LED_MATRIX_ENABLE | ||
| 156 | /* | ||
| 157 | * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), | ||
| 158 | * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. | ||
| 159 | */ | ||
| 160 | # if !defined(LED_MATRIX_STARTUP_SPD) | ||
| 161 | # define LED_MATRIX_STARTUP_SPD UINT8_MAX / 2 | ||
| 162 | # endif | ||
| 163 | led_matrix_set_speed(LED_MATRIX_STARTUP_SPD); | ||
| 164 | led_matrix_set_flags(LED_FLAG_ALL); | ||
| 165 | #endif | ||
| 166 | |||
| 126 | matrix_init_user(); | 167 | matrix_init_user(); |
| 127 | // The backlight always has to be initialized, otherwise it will stay lit | 168 | // The backlight always has to be initialized, otherwise it will stay lit |
| 128 | #ifndef VISUALIZER_ENABLE | 169 | #ifndef VISUALIZER_ENABLE |
| 129 | lcd_backlight_hal_init(); | 170 | lcd_backlight_hal_init(); |
| 130 | #endif | 171 | #endif |
| 131 | #ifdef WPM_ENABLE | 172 | #if (defined(LED_MATRIX_ENABLE) || defined(WPM_ENABLE)) |
| 132 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*)); | 173 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t *)); |
| 133 | #endif | 174 | #endif |
| 134 | } | 175 | } |
| 135 | 176 | ||
| @@ -137,6 +178,30 @@ void matrix_scan_kb(void) { | |||
| 137 | // put your looping keyboard code here | 178 | // put your looping keyboard code here |
| 138 | // runs every cycle (a lot) | 179 | // runs every cycle (a lot) |
| 139 | 180 | ||
| 181 | #ifdef LED_MATRIX_ENABLE | ||
| 182 | if (is_serial_link_master()) { | ||
| 183 | if (!led_matrix_get_suspend_state()) { | ||
| 184 | if (timer_elapsed(led_matrix_sent_timer) >= 5000 || memcmp((void *)&last_sent_led_matrix, (void *)&led_matrix_eeconfig, sizeof(last_sent_led_matrix))) { | ||
| 185 | led_matrix_sent_timer = timer_read(); | ||
| 186 | memcpy((void *)&last_sent_led_matrix, (void *)&led_matrix_eeconfig, sizeof(last_sent_led_matrix)); | ||
| 187 | *begin_write_led_matrix() = last_sent_led_matrix; | ||
| 188 | end_write_led_matrix(); | ||
| 189 | } | ||
| 190 | } | ||
| 191 | } else if (is_serial_link_connected()) { | ||
| 192 | bool *new_led_suspend_state = read_led_suspend_state(); | ||
| 193 | if (new_led_suspend_state) { | ||
| 194 | led_matrix_set_suspend_state(*new_led_suspend_state); | ||
| 195 | } | ||
| 196 | if (!led_matrix_get_suspend_state()) { | ||
| 197 | led_eeconfig_t *new_led_matrix = read_led_matrix(); | ||
| 198 | if (new_led_matrix) { | ||
| 199 | memcpy((void *)&led_matrix_eeconfig, (void *)new_led_matrix, sizeof(last_sent_led_matrix)); | ||
| 200 | } | ||
| 201 | } | ||
| 202 | } | ||
| 203 | #endif | ||
| 204 | |||
| 140 | #ifdef WPM_ENABLE | 205 | #ifdef WPM_ENABLE |
| 141 | if (is_serial_link_master()) { | 206 | if (is_serial_link_master()) { |
| 142 | uint8_t current_wpm = get_current_wpm(); | 207 | uint8_t current_wpm = get_current_wpm(); |
| @@ -146,67 +211,68 @@ void matrix_scan_kb(void) { | |||
| 146 | last_sent_wpm = current_wpm; | 211 | last_sent_wpm = current_wpm; |
| 147 | } | 212 | } |
| 148 | } else if (is_serial_link_connected()) { | 213 | } else if (is_serial_link_connected()) { |
| 149 | uint8_t* new_wpm = read_current_wpm(); | 214 | uint8_t *new_wpm = read_current_wpm(); |
| 150 | if (new_wpm) { | 215 | if (new_wpm) { |
| 151 | set_current_wpm(*new_wpm); | 216 | set_current_wpm(*new_wpm); |
| 152 | } | 217 | } |
| 153 | } | 218 | } |
| 154 | #endif | 219 | #endif |
| 220 | |||
| 155 | matrix_scan_user(); | 221 | matrix_scan_user(); |
| 156 | } | 222 | } |
| 157 | 223 | ||
| 158 | bool is_keyboard_master(void) { | 224 | bool is_keyboard_master(void) { return is_serial_link_master(); } |
| 159 | return is_serial_link_master(); | ||
| 160 | } | ||
| 161 | 225 | ||
| 162 | __attribute__ ((weak)) | 226 | bool is_keyboard_left(void) { |
| 163 | void ergodox_board_led_on(void){ | 227 | #if defined(EE_HANDS) |
| 228 | return eeconfig_read_handedness(); | ||
| 229 | #elif defined(MASTER_IS_ON_RIGHT) | ||
| 230 | return !is_keyboard_master(); | ||
| 231 | #else | ||
| 232 | return is_keyboard_master(); | ||
| 233 | #endif | ||
| 164 | } | 234 | } |
| 165 | 235 | ||
| 166 | __attribute__ ((weak)) | 236 | __attribute__ ((weak)) void ergodox_board_led_on(void) {} |
| 167 | void ergodox_right_led_1_on(void){ | ||
| 168 | } | ||
| 169 | 237 | ||
| 170 | __attribute__ ((weak)) | 238 | __attribute__ ((weak)) void ergodox_right_led_1_on(void) {} |
| 171 | void ergodox_right_led_2_on(void){ | ||
| 172 | } | ||
| 173 | 239 | ||
| 174 | __attribute__ ((weak)) | 240 | __attribute__ ((weak)) void ergodox_right_led_2_on(void) {} |
| 175 | void ergodox_right_led_3_on(void){ | ||
| 176 | } | ||
| 177 | 241 | ||
| 178 | __attribute__ ((weak)) | 242 | __attribute__ ((weak)) void ergodox_right_led_3_on(void) {} |
| 179 | void ergodox_board_led_off(void){ | ||
| 180 | } | ||
| 181 | 243 | ||
| 182 | __attribute__ ((weak)) | 244 | __attribute__ ((weak)) void ergodox_board_led_off(void) {} |
| 183 | void ergodox_right_led_1_off(void){ | ||
| 184 | } | ||
| 185 | 245 | ||
| 186 | __attribute__ ((weak)) | 246 | __attribute__ ((weak)) void ergodox_right_led_1_off(void) {} |
| 187 | void ergodox_right_led_2_off(void){ | ||
| 188 | } | ||
| 189 | 247 | ||
| 190 | __attribute__ ((weak)) | 248 | __attribute__ ((weak)) void ergodox_right_led_2_off(void) {} |
| 191 | void ergodox_right_led_3_off(void){ | ||
| 192 | } | ||
| 193 | 249 | ||
| 194 | __attribute__ ((weak)) | 250 | __attribute__ ((weak)) void ergodox_right_led_3_off(void) {} |
| 195 | void ergodox_right_led_1_set(uint8_t n) { | ||
| 196 | } | ||
| 197 | 251 | ||
| 198 | __attribute__ ((weak)) | 252 | __attribute__ ((weak)) void ergodox_right_led_1_set(uint8_t n) {} |
| 199 | void ergodox_right_led_2_set(uint8_t n) { | 253 | |
| 254 | __attribute__ ((weak)) void ergodox_right_led_2_set(uint8_t n) {} | ||
| 255 | |||
| 256 | __attribute__ ((weak)) void ergodox_right_led_3_set(uint8_t n) {} | ||
| 257 | |||
| 258 | void suspend_power_down_kb(void) { | ||
| 259 | #ifdef LED_MATRIX_ENABLE | ||
| 260 | send_led_suspend_state(); | ||
| 261 | #endif | ||
| 262 | suspend_power_down_user(); | ||
| 200 | } | 263 | } |
| 201 | 264 | ||
| 202 | __attribute__ ((weak)) | 265 | void suspend_wakeup_init_kb(void) { |
| 203 | void ergodox_right_led_3_set(uint8_t n) { | 266 | #ifdef LED_MATRIX_ENABLE |
| 267 | send_led_suspend_state(); | ||
| 268 | #endif | ||
| 269 | suspend_wakeup_init_user(); | ||
| 204 | } | 270 | } |
| 205 | 271 | ||
| 206 | #ifdef SWAP_HANDS_ENABLE | 272 | #ifdef SWAP_HANDS_ENABLE |
| 207 | __attribute__ ((weak)) | 273 | __attribute__ ((weak)) |
| 208 | const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | 274 | const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { |
| 209 | {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, | 275 | {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}}, |
| 210 | {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 10}}, | 276 | {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 10}}, |
| 211 | {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 11}}, | 277 | {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 11}}, |
| 212 | {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {4, 12}}, | 278 | {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {4, 12}}, |
| @@ -226,3 +292,115 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 226 | {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}}, | 292 | {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}}, |
| 227 | }; | 293 | }; |
| 228 | #endif | 294 | #endif |
| 295 | |||
| 296 | #ifdef LED_MATRIX_ENABLE | ||
| 297 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { | ||
| 298 | // The numbers in the comments are the led numbers DXX on the PCB | ||
| 299 | /* Refer to IS31 manual for these locations | ||
| 300 | * driver | ||
| 301 | * | LED address | ||
| 302 | * | | */ | ||
| 303 | // Left half | ||
| 304 | // 45 44 43 42 41 40 39 | ||
| 305 | { 0, C2_2 }, { 0, C1_2 }, { 0, C5_1 }, { 0, C4_1 }, { 0, C3_1 }, { 0, C2_1 }, { 0, C1_1 }, | ||
| 306 | // 52 51 50 49 48 47 46 | ||
| 307 | { 0, C4_3 }, { 0, C3_3 }, { 0, C2_3 }, { 0, C1_3 }, { 0, C5_2 }, { 0, C4_2 }, { 0, C3_2 }, | ||
| 308 | // 58 57 56 55 54 53 | ||
| 309 | { 0, C5_4 }, { 0, C4_4 }, { 0, C3_4 }, { 0, C2_4 }, { 0, C1_4 }, { 0, C5_3 }, | ||
| 310 | // 67 66 65 64 63 62 61 | ||
| 311 | { 0, C4_6 }, { 0, C3_6 }, { 0, C2_6 }, { 0, C1_6 }, { 0, C5_5 }, { 0, C4_5 }, { 0, C3_5 }, | ||
| 312 | // 76 75 74 73 72 | ||
| 313 | { 0, C4_8 }, { 0, C3_8 }, { 0, C2_8 }, { 0, C1_8 }, { 0, C4_7 }, | ||
| 314 | // 60 59 | ||
| 315 | { 0, C2_5 }, { 0, C1_5 }, | ||
| 316 | // 68 | ||
| 317 | { 0, C5_6 }, | ||
| 318 | // 71 70 69 | ||
| 319 | { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, | ||
| 320 | // Right half (mirrored) | ||
| 321 | // Due to how LED_MATRIX_SPLIT is implemented, only the first half of g_is31_leds is actually used. | ||
| 322 | // Luckily, the right half has the same LED pinouts, just mirrored. | ||
| 323 | // 45 44 43 42 41 40 39 | ||
| 324 | { 0, C2_2 }, { 0, C1_2 }, { 0, C5_1 }, { 0, C4_1 }, { 0, C3_1 }, { 0, C2_1 }, { 0, C1_1 }, | ||
| 325 | // 52 51 50 49 48 47 46 | ||
| 326 | { 0, C4_3 }, { 0, C3_3 }, { 0, C2_3 }, { 0, C1_3 }, { 0, C5_2 }, { 0, C4_2 }, { 0, C3_2 }, | ||
| 327 | // 58 57 56 55 54 53 | ||
| 328 | { 0, C5_4 }, { 0, C4_4 }, { 0, C3_4 }, { 0, C2_4 }, { 0, C1_4 }, { 0, C5_3 }, | ||
| 329 | // 67 66 65 64 63 62 61 | ||
| 330 | { 0, C4_6 }, { 0, C3_6 }, { 0, C2_6 }, { 0, C1_6 }, { 0, C5_5 }, { 0, C4_5 }, { 0, C3_5 }, | ||
| 331 | // 76 75 74 73 72 | ||
| 332 | { 0, C4_8 }, { 0, C3_8 }, { 0, C2_8 }, { 0, C1_8 }, { 0, C4_7 }, | ||
| 333 | // 60 59 | ||
| 334 | { 0, C2_5 }, { 0, C1_5 }, | ||
| 335 | // 68 | ||
| 336 | { 0, C5_6 }, | ||
| 337 | // 71 70 69 | ||
| 338 | { 0, C3_7 }, { 0, C2_7 }, { 0, C1_7 }, | ||
| 339 | }; | ||
| 340 | |||
| 341 | led_config_t g_led_config = { | ||
| 342 | { | ||
| 343 | // Key Matrix to LED Index | ||
| 344 | // Left half | ||
| 345 | { NO_LED, NO_LED, NO_LED, 33, 34 }, | ||
| 346 | { NO_LED, NO_LED, NO_LED, 32, 37 }, | ||
| 347 | { 6, 13, NO_LED, 26, 36 }, | ||
| 348 | { 5, 12, 19, 25, 35 }, | ||
| 349 | { 4, 11, 18, 24, 31 }, | ||
| 350 | { 3, 10, 17, 23, 30 }, | ||
| 351 | { 2, 9, 16, 22, 29 }, | ||
| 352 | { 1, 8, 15, 21, 28 }, | ||
| 353 | { 0, 7, 14, 20, 27 }, | ||
| 354 | // Right half | ||
| 355 | { NO_LED, NO_LED, NO_LED, 71, 72 }, | ||
| 356 | { NO_LED, NO_LED, NO_LED, 70, 75 }, | ||
| 357 | { 44, 51, NO_LED, 64, 74 }, | ||
| 358 | { 43, 50, 57, 63, 73 }, | ||
| 359 | { 42, 49, 56, 62, 69 }, | ||
| 360 | { 41, 48, 55, 61, 68 }, | ||
| 361 | { 40, 47, 54, 60, 67 }, | ||
| 362 | { 39, 46, 53, 59, 66 }, | ||
| 363 | { 38, 45, 52, 58, 65 }, | ||
| 364 | }, { | ||
| 365 | // LED Index to Physical Position (assumes a reasonable gap between halves) | ||
| 366 | // Left half | ||
| 367 | { 0, 3 }, { 15, 3 }, { 27, 1 }, { 39, 0 }, { 51, 1 }, { 63, 2 }, { 75, 2 }, | ||
| 368 | { 0, 13 }, { 15, 13 }, { 27, 11 }, { 39, 10 }, { 51, 11 }, { 63, 12 }, { 78, 17 }, | ||
| 369 | { 0, 23 }, { 15, 23 }, { 27, 21 }, { 39, 20 }, { 51, 21 }, { 63, 22 }, | ||
| 370 | { 0, 33 }, { 15, 33 }, { 27, 31 }, { 39, 30 }, { 51, 31 }, { 63, 32 }, { 78, 32 }, | ||
| 371 | { 4, 43 }, { 15, 43 }, { 27, 41 }, { 39, 40 }, { 51, 41 }, | ||
| 372 | { 89, 41 }, { 100, 46 }, | ||
| 373 | { 95, 55 }, | ||
| 374 | { 72, 54 }, { 83, 59 }, { 90, 64 }, | ||
| 375 | // Right half (mirrored) | ||
| 376 | { 224, 3 }, { 209, 3 }, { 197, 1 }, { 185, 0 }, { 173, 1 }, { 161, 2 }, { 149, 2 }, | ||
| 377 | { 224, 13 }, { 209, 13 }, { 197, 11 }, { 185, 10 }, { 173, 11 }, { 161, 12 }, { 146, 17 }, | ||
| 378 | { 224, 23 }, { 209, 23 }, { 197, 21 }, { 185, 20 }, { 173, 21 }, { 161, 22 }, | ||
| 379 | { 224, 33 }, { 209, 33 }, { 197, 31 }, { 185, 30 }, { 173, 31 }, { 161, 32 }, { 146, 32 }, | ||
| 380 | { 220, 43 }, { 209, 43 }, { 197, 41 }, { 185, 40 }, { 173, 41 }, | ||
| 381 | { 135, 41 }, { 124, 46 }, | ||
| 382 | { 129, 55 }, | ||
| 383 | { 152, 54 }, { 141, 59 }, { 134, 64 }, | ||
| 384 | }, { | ||
| 385 | // LED Index to Flag | ||
| 386 | // Left half | ||
| 387 | 1, 4, 4, 4, 4, 4, 1, | ||
| 388 | 1, 4, 4, 4, 4, 4, 1, | ||
| 389 | 1, 4, 4, 4, 4, 4, | ||
| 390 | 1, 4, 4, 4, 4, 4, 1, | ||
| 391 | 1, 1, 1, 1, 1, | ||
| 392 | 1, 1, | ||
| 393 | 1, | ||
| 394 | 1, 1, 1, | ||
| 395 | // Right half (mirrored) | ||
| 396 | 1, 4, 4, 4, 4, 4, 1, | ||
| 397 | 1, 4, 4, 4, 4, 4, 1, | ||
| 398 | 1, 4, 4, 4, 4, 4, | ||
| 399 | 1, 4, 4, 4, 4, 4, 1, | ||
| 400 | 1, 1, 1, 1, 1, | ||
| 401 | 1, 1, | ||
| 402 | 1, | ||
| 403 | 1, 1, 1, | ||
| 404 | } | ||
| 405 | }; | ||
| 406 | #endif | ||
diff --git a/keyboards/ergodox_infinity/matrix.c b/keyboards/ergodox_infinity/matrix.c index 7baacd24d..0fca56a97 100644 --- a/keyboards/ergodox_infinity/matrix.c +++ b/keyboards/ergodox_infinity/matrix.c | |||
| @@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 24 | #include "print.h" | 24 | #include "print.h" |
| 25 | #include "debug.h" | 25 | #include "debug.h" |
| 26 | #include "matrix.h" | 26 | #include "matrix.h" |
| 27 | #include "eeconfig.h" | 27 | #include "keyboard.h" |
| 28 | #include "serial_link/system/serial_link.h" | 28 | #include "serial_link/system/serial_link.h" |
| 29 | 29 | ||
| 30 | 30 | ||
| @@ -119,15 +119,9 @@ uint8_t matrix_scan(void) | |||
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | uint8_t offset = 0; | 121 | uint8_t offset = 0; |
| 122 | #if (defined(EE_HANDS) || defined(MASTER_IS_ON_RIGHT)) | 122 | if (is_serial_link_master() && !is_keyboard_left()) { |
| 123 | #ifdef EE_HANDS | ||
| 124 | if (is_serial_link_master() && !eeconfig_read_handedness()) { | ||
| 125 | #else | ||
| 126 | if (is_serial_link_master()) { | ||
| 127 | #endif | ||
| 128 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS; | 123 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS; |
| 129 | } | 124 | } |
| 130 | #endif | ||
| 131 | 125 | ||
| 132 | if (debouncing && timer_elapsed(debouncing_time) > DEBOUNCE) { | 126 | if (debouncing && timer_elapsed(debouncing_time) > DEBOUNCE) { |
| 133 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { | 127 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { |
| @@ -167,17 +161,11 @@ void matrix_print(void) | |||
| 167 | 161 | ||
| 168 | void matrix_set_remote(matrix_row_t* rows, uint8_t index) { | 162 | void matrix_set_remote(matrix_row_t* rows, uint8_t index) { |
| 169 | uint8_t offset = 0; | 163 | uint8_t offset = 0; |
| 170 | #ifdef EE_HANDS | 164 | if (is_keyboard_left()) { |
| 171 | if (eeconfig_read_handedness()) { | ||
| 172 | offset = LOCAL_MATRIX_ROWS * (index + 1); | 165 | offset = LOCAL_MATRIX_ROWS * (index + 1); |
| 173 | } else { | 166 | } else { |
| 174 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS * (index + 2); | 167 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS * (index + 2); |
| 175 | } | 168 | } |
| 176 | #elif defined(MASTER_IS_ON_RIGHT) | ||
| 177 | offset = MATRIX_ROWS - LOCAL_MATRIX_ROWS * (index + 2); | ||
| 178 | #else | ||
| 179 | offset = LOCAL_MATRIX_ROWS * (index + 1); | ||
| 180 | #endif | ||
| 181 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { | 169 | for (int row = 0; row < LOCAL_MATRIX_ROWS; row++) { |
| 182 | matrix[offset + row] = rows[row]; | 170 | matrix[offset + row] = rows[row]; |
| 183 | } | 171 | } |
diff --git a/keyboards/ergodox_infinity/rules.mk b/keyboards/ergodox_infinity/rules.mk index b9ead9e87..70bcabe80 100644 --- a/keyboards/ergodox_infinity/rules.mk +++ b/keyboards/ergodox_infinity/rules.mk | |||
| @@ -22,8 +22,6 @@ CUSTOM_MATRIX = yes # Custom matrix file | |||
| 22 | SERIAL_LINK_ENABLE = yes | 22 | SERIAL_LINK_ENABLE = yes |
| 23 | VISUALIZER_ENABLE = yes | 23 | VISUALIZER_ENABLE = yes |
| 24 | LCD_ENABLE = yes | 24 | LCD_ENABLE = yes |
| 25 | BACKLIGHT_ENABLE = yes | ||
| 26 | BACKLIGHT_DRIVER = custom | ||
| 27 | LCD_BACKLIGHT_ENABLE = yes | 25 | LCD_BACKLIGHT_ENABLE = yes |
| 28 | MIDI_ENABLE = no | 26 | MIDI_ENABLE = no |
| 29 | RGBLIGHT_ENABLE = no | 27 | RGBLIGHT_ENABLE = no |
| @@ -32,9 +30,8 @@ LCD_DRIVER = st7565 | |||
| 32 | LCD_WIDTH = 128 | 30 | LCD_WIDTH = 128 |
| 33 | LCD_HEIGHT = 32 | 31 | LCD_HEIGHT = 32 |
| 34 | 32 | ||
| 35 | LED_DRIVER = is31fl3731c | 33 | LED_MATRIX_ENABLE = yes |
| 36 | LED_WIDTH = 7 | 34 | LED_MATRIX_DRIVER = IS31FL3731 |
| 37 | LED_HEIGHT = 7 | ||
| 38 | 35 | ||
| 39 | # project specific files | 36 | # project specific files |
| 40 | SRC = matrix.c \ | 37 | SRC = matrix.c \ |
diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h index 5f11cdddb..d0e208f9b 100644 --- a/keyboards/geekboards/macropad_v2/config.h +++ b/keyboards/geekboards/macropad_v2/config.h | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | #define WS2812_DMA_CHANNEL 3 | 41 | #define WS2812_DMA_CHANNEL 3 |
| 42 | 42 | ||
| 43 | #ifdef RGB_MATRIX_ENABLE | 43 | #ifdef RGB_MATRIX_ENABLE |
| 44 | #define RGB_MATRIX_KEYPRESSES | 44 | #define RGB_MATRIX_KEYPRESSES |
| 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 46 | #define DISABLE_RGB_MATRIX_ALPHAS_MODS | 46 | #define DISABLE_RGB_MATRIX_ALPHAS_MODS |
| 47 | #define DISABLE_RGB_MATRIX_BAND_SAT | 47 | #define DISABLE_RGB_MATRIX_BAND_SAT |
| @@ -67,7 +67,7 @@ | |||
| 67 | #define RGB_MATRIX_STARTUP_SPD 30 | 67 | #define RGB_MATRIX_STARTUP_SPD 30 |
| 68 | #endif //RGB_MATRIX_ENABLE | 68 | #endif //RGB_MATRIX_ENABLE |
| 69 | 69 | ||
| 70 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 70 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 71 | #define WAIT_FOR_USB | 71 | #define WAIT_FOR_USB |
| 72 | 72 | ||
| 73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 73 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
diff --git a/keyboards/geekboards/tester/config.h b/keyboards/geekboards/tester/config.h index 4f072c0ee..3e3daccd5 100644 --- a/keyboards/geekboards/tester/config.h +++ b/keyboards/geekboards/tester/config.h | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #define DEBOUNCE 3 | 24 | #define DEBOUNCE 3 |
| 25 | #ifdef RGB_MATRIX_ENABLE | 25 | #ifdef RGB_MATRIX_ENABLE |
| 26 | #define RGB_DISABLE_AFTER_TIMEOUT 0 | 26 | #define RGB_DISABLE_AFTER_TIMEOUT 0 |
| 27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 28 | #define RGB_MATRIX_KEYPRESSES | 28 | #define RGB_MATRIX_KEYPRESSES |
| 29 | #define DISABLE_RGB_MATRIX_SPLASH | 29 | #define DISABLE_RGB_MATRIX_SPLASH |
| 30 | #define DISABLE_RGB_MATRIX_MULTISPLASH | 30 | #define DISABLE_RGB_MATRIX_MULTISPLASH |
| @@ -36,4 +36,4 @@ | |||
| 36 | #define DRIVER_1_LED_TOTAL 8 | 36 | #define DRIVER_1_LED_TOTAL 8 |
| 37 | #define DRIVER_2_LED_TOTAL 0 | 37 | #define DRIVER_2_LED_TOTAL 0 |
| 38 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | 38 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) |
| 39 | #endif \ No newline at end of file | 39 | #endif |
diff --git a/keyboards/gmmk/pro/config.h b/keyboards/gmmk/pro/config.h index ab3c7a7a2..64062bece 100644 --- a/keyboards/gmmk/pro/config.h +++ b/keyboards/gmmk/pro/config.h | |||
| @@ -46,3 +46,20 @@ | |||
| 46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
| 47 | /* Locking resynchronize hack */ | 47 | /* Locking resynchronize hack */ |
| 48 | #define LOCKING_RESYNC_ENABLE | 48 | #define LOCKING_RESYNC_ENABLE |
| 49 | |||
| 50 | /* SPI Config for LED Driver */ | ||
| 51 | #define SPI_DRIVER SPID1 | ||
| 52 | #define SPI_SCK_PIN A5 | ||
| 53 | #define SPI_MOSI_PIN A6 | ||
| 54 | #define SPI_MISO_PIN A7 | ||
| 55 | |||
| 56 | #define DRIVER_1_CS B13 | ||
| 57 | #define DRIVER_2_CS B14 | ||
| 58 | #define DRIVER_1_EN C13 | ||
| 59 | #define DRIVER_2_EN C13 | ||
| 60 | |||
| 61 | #define DRIVER_COUNT 2 | ||
| 62 | #define DRIVER_1_LED_TOTAL 66 | ||
| 63 | #define DRIVER_2_LED_TOTAL 32 | ||
| 64 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | ||
| 65 | |||
diff --git a/keyboards/gmmk/pro/halconf.h b/keyboards/gmmk/pro/halconf.h new file mode 100644 index 000000000..23ecb202a --- /dev/null +++ b/keyboards/gmmk/pro/halconf.h | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #define HAL_USE_SPI TRUE | ||
| 4 | #define SPI_USE_WAIT TRUE | ||
| 5 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
| 6 | |||
| 7 | #include_next <halconf.h> | ||
diff --git a/keyboards/gmmk/pro/mcuconf.h b/keyboards/gmmk/pro/mcuconf.h new file mode 100644 index 000000000..bb1c0acde --- /dev/null +++ b/keyboards/gmmk/pro/mcuconf.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include_next <mcuconf.h> | ||
| 4 | |||
| 5 | #undef STM32_SPI_USE_SPI1 | ||
| 6 | #define STM32_SPI_USE_SPI1 TRUE | ||
diff --git a/keyboards/gmmk/pro/pro.c b/keyboards/gmmk/pro/pro.c index 816d089a5..9ed7ac886 100644 --- a/keyboards/gmmk/pro/pro.c +++ b/keyboards/gmmk/pro/pro.c | |||
| @@ -14,3 +14,225 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "pro.h" | 16 | #include "pro.h" |
| 17 | |||
| 18 | #ifdef RGB_MATRIX_ENABLE | ||
| 19 | led_config_t g_led_config = { { | ||
| 20 | { 4, NO_LED, NO_LED, 95, 65, 79, 5, 28 }, | ||
| 21 | { 8, 2, 9, 0, 10, 75, 1, 7 }, | ||
| 22 | { 14, 3, 15, NO_LED, 16, 86, 6, 13 }, | ||
| 23 | { 20, 18, 21, 23, 22, 94, 12, 19 }, | ||
| 24 | { 25, 30, 26, 31, 27, 32, 29, 24 }, | ||
| 25 | { 41, 36, 42, 37, 43, 38, 35, 40 }, | ||
| 26 | { 46, 89, 47, 34, 48, 72, 78, 45 }, | ||
| 27 | { 52, 39, 53, 97, 54, 82, 44, 51 }, | ||
| 28 | { 58, 63, 59, 64, NO_LED, 60, 62, 57 }, | ||
| 29 | { 11, 90, 55, 17, 33, 49, NO_LED, 69 }, | ||
| 30 | { NO_LED, 85, 93, 61, 96, 66, 50, 56 } | ||
| 31 | }, { | ||
| 32 | { 0, 0 }, // 0, ESC, k13 | ||
| 33 | { 0, 15 }, // 1, ~, k16 | ||
| 34 | { 4, 26 }, // 2, Tab, k11 | ||
| 35 | { 5, 38 }, // 3, Caps, k21 | ||
| 36 | { 9, 49 }, // 4, Sh_L, k00 | ||
| 37 | { 2, 61 }, // 5, Ct_L, k06 | ||
| 38 | { 18, 0 }, // 6, F1, k26 | ||
| 39 | { 14, 15 }, // 7, 1, k17 | ||
| 40 | { 22, 26 }, // 8, Q, k10 | ||
| 41 | { 25, 38 }, // 9, A, k12 | ||
| 42 | { 33, 49 }, // 10, Z, k14 | ||
| 43 | { 20, 61 }, // 11, Win_L, k90 | ||
| 44 | { 33, 0 }, // 12, F2, k36 | ||
| 45 | { 29, 15 }, // 13, 2, k27 | ||
| 46 | { 36, 26 }, // 14, W, k20 | ||
| 47 | { 40, 38 }, // 15, S, k22 | ||
| 48 | { 47, 49 }, // 16, X, k24 | ||
| 49 | { 38, 61 }, // 17, Alt_L, k93 | ||
| 50 | { 47, 0 }, // 18, F3, k31 | ||
| 51 | { 43, 15 }, // 19, 3, k37 | ||
| 52 | { 51, 26 }, // 20, E, k30 | ||
| 53 | { 54, 38 }, // 21, D, k32 | ||
| 54 | { 61, 49 }, // 22, C, k34 | ||
| 55 | { 61, 0 }, // 23, F4, k33 | ||
| 56 | { 58, 15 }, // 24, 4, k47 | ||
| 57 | { 65, 26 }, // 25, R, k40 | ||
| 58 | { 69, 38 }, // 26, F, k42 | ||
| 59 | { 76, 49 }, // 27, V, k44 | ||
| 60 | { 79, 0 }, // 28, F5, k07 | ||
| 61 | { 72, 15 }, // 29, 5, k46 | ||
| 62 | { 79, 26 }, // 30, T, k41 | ||
| 63 | { 83, 38 }, // 31, G, k43 | ||
| 64 | { 90, 49 }, // 32, B, k45 | ||
| 65 | { 92, 61 }, // 33, SPACE, k94 | ||
| 66 | { 94, 0 }, // 34, F6, k63 | ||
| 67 | { 87, 15 }, // 35, 6, k56 | ||
| 68 | { 94, 26 }, // 36, Y, k51 | ||
| 69 | { 98, 38 }, // 37, H, k53 | ||
| 70 | { 105, 49 }, // 38, N, k55 | ||
| 71 | { 108, 0 }, // 39, F7, k71 | ||
| 72 | { 101, 15 }, // 40, 7, k57 | ||
| 73 | { 108, 26 }, // 41, U, k50 | ||
| 74 | { 112, 38 }, // 42, J, k52 | ||
| 75 | { 119, 49 }, // 43, M, k54 | ||
| 76 | { 123, 0 }, // 44, F8, k76 | ||
| 77 | { 116, 15 }, // 45, 8, k67 | ||
| 78 | { 123, 26 }, // 46, I, k60 | ||
| 79 | { 126, 38 }, // 47, K, k62 | ||
| 80 | { 134, 49 }, // 48, ,, k64 | ||
| 81 | { 145, 61 }, // 49, Alt_R, k95 | ||
| 82 | { 141, 0 }, // 50, F9, ka6 | ||
| 83 | { 130, 15 }, // 51, 9, k77 | ||
| 84 | { 137, 26 }, // 52, O, k70 | ||
| 85 | { 141, 38 }, // 53, L, k72 | ||
| 86 | { 148, 49 }, // 54, ., k74 | ||
| 87 | { 159, 61 }, // 55, FN, k92 | ||
| 88 | { 155, 0 }, // 56, F10, ka7 | ||
| 89 | { 145, 15 }, // 57, 0, k87 | ||
| 90 | { 152, 26 }, // 58, P, k80 | ||
| 91 | { 155, 38 }, // 59, ;, k82 | ||
| 92 | { 163, 49 }, // 60, ?, k85 | ||
| 93 | { 170, 0 }, // 61, F11, ka3 | ||
| 94 | { 159, 15 }, // 62, -, k86 | ||
| 95 | { 166, 26 }, // 63, [, k81 | ||
| 96 | { 170, 38 }, // 64, ", k83 | ||
| 97 | { 173, 61 }, // 65, Ct_R, k04 | ||
| 98 | { 184, 0 }, // 66, F12, ka5 | ||
| 99 | { 0, 8 }, // 67, LED, l01 | ||
| 100 | { 224, 8 }, // 68, LED, l11 | ||
| 101 | { 202, 0 }, // 69, Prt, k97 | ||
| 102 | { 0, 15 }, // 70, LED, l02 | ||
| 103 | { 224, 15 }, // 71, LED, l12 | ||
| 104 | { 224, 15 }, // 72, Del, k65 | ||
| 105 | { 0, 21 }, // 73, LED, l03 | ||
| 106 | { 224, 21 }, // 74, LED, l13 | ||
| 107 | { 224, 26 }, // 75, PgUp, k15 | ||
| 108 | { 0, 28 }, // 76, LED, l04 | ||
| 109 | { 224, 28 }, // 77, LED, l14 | ||
| 110 | { 173, 15 }, // 78, =, k66 | ||
| 111 | { 220, 64 }, // 79, Right, k05 | ||
| 112 | { 0, 35 }, // 80, LED, l05 | ||
| 113 | { 224, 35 }, // 81, LED, l15 | ||
| 114 | { 224, 49 }, // 82, End, k75 | ||
| 115 | { 0, 42 }, // 83, LED, l06 | ||
| 116 | { 224, 42 }, // 84, LED, l16 | ||
| 117 | { 195, 15 }, // 85, BSpc, ka1 | ||
| 118 | { 224, 38 }, // 86, PgDn, k25 | ||
| 119 | { 0, 48 }, // 87, LED, l07 | ||
| 120 | { 224, 48 }, // 88, LED, l17 | ||
| 121 | { 181, 26 }, // 89, ], k61 | ||
| 122 | { 182, 49 }, // 90, Sh_R, k91 | ||
| 123 | { 0, 55 }, // 91, LED, l08 | ||
| 124 | { 224, 55 }, // 92, LED, l18 | ||
| 125 | { 199, 26 }, // 93, \, ka2 | ||
| 126 | { 206, 52 }, // 94, Up, k35 | ||
| 127 | { 191, 64 }, // 95, Left, k03 | ||
| 128 | { 193, 38 }, // 96, Enter, ka4 | ||
| 129 | { 206, 64 } // 97, Down, k73 | ||
| 130 | }, { | ||
| 131 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
| 132 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
| 133 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 4, 2, 2, 4, 2, 2, | ||
| 134 | 4, 2, 2, 4, 4, 2, 2, 4, 2, 2, 4, 4, 2, 2, 4, 4, 2, 2, 4, 4, 4, 4, 4 | ||
| 135 | } }; | ||
| 136 | |||
| 137 | const aw_led g_aw_leds[DRIVER_LED_TOTAL] = { | ||
| 138 | { 0, CS1_SW1, CS2_SW1, CS3_SW1 }, // 0, ESC, k13 | ||
| 139 | { 0, CS4_SW1, CS5_SW1, CS6_SW1 }, // 1, ~, k16 | ||
| 140 | { 0, CS7_SW1, CS8_SW1, CS9_SW1 }, // 2, Tab, k11 | ||
| 141 | { 0, CS10_SW1, CS11_SW1, CS12_SW1 }, // 3, Caps, k21 | ||
| 142 | { 0, CS13_SW1, CS14_SW1, CS15_SW1 }, // 4, Sh_L, k00 | ||
| 143 | { 0, CS16_SW1, CS17_SW1, CS18_SW1 }, // 5, Ct_L, k06 | ||
| 144 | { 0, CS1_SW2, CS2_SW2, CS3_SW2 }, // 6, F1, k26 | ||
| 145 | { 0, CS4_SW2, CS5_SW2, CS6_SW2 }, // 7, 1, k17 | ||
| 146 | { 0, CS7_SW2, CS8_SW2, CS9_SW2 }, // 8, Q, k10 | ||
| 147 | { 0, CS10_SW2, CS11_SW2, CS12_SW2 }, // 9, A, k12 | ||
| 148 | { 0, CS13_SW2, CS14_SW2, CS15_SW2 }, // 10, Z, k14 | ||
| 149 | { 0, CS16_SW2, CS17_SW2, CS18_SW2 }, // 11, Win_L, k90 | ||
| 150 | { 0, CS1_SW3, CS2_SW3, CS3_SW3 }, // 12, F2, k36 | ||
| 151 | { 0, CS4_SW3, CS5_SW3, CS6_SW3 }, // 13, 2, k27 | ||
| 152 | { 0, CS7_SW3, CS8_SW3, CS9_SW3 }, // 14, W, k20 | ||
| 153 | { 0, CS10_SW3, CS11_SW3, CS12_SW3 }, // 15, S, k22 | ||
| 154 | { 0, CS13_SW3, CS14_SW3, CS15_SW3 }, // 16, X, k24 | ||
| 155 | { 0, CS16_SW3, CS17_SW3, CS18_SW3 }, // 17, Alt_L, k93 | ||
| 156 | { 0, CS1_SW4, CS2_SW4, CS3_SW4 }, // 18, F3, k31 | ||
| 157 | { 0, CS4_SW4, CS5_SW4, CS6_SW4 }, // 19, 3, k37 | ||
| 158 | { 0, CS7_SW4, CS8_SW4, CS9_SW4 }, // 20, E, k30 | ||
| 159 | { 0, CS10_SW4, CS11_SW4, CS12_SW4 }, // 21, D, k32 | ||
| 160 | { 0, CS13_SW4, CS14_SW4, CS15_SW4 }, // 22, C, k34 | ||
| 161 | { 0, CS1_SW5, CS2_SW5, CS3_SW5 }, // 23, F4, k33 | ||
| 162 | { 0, CS4_SW5, CS5_SW5, CS6_SW5 }, // 24, 4, k47 | ||
| 163 | { 0, CS7_SW5, CS8_SW5, CS9_SW5 }, // 25, R, k40 | ||
| 164 | { 0, CS10_SW5, CS11_SW5, CS12_SW5 }, // 26, F, k42 | ||
| 165 | { 0, CS13_SW5, CS14_SW5, CS15_SW5 }, // 27, V, k44 | ||
| 166 | { 0, CS1_SW6, CS2_SW6, CS3_SW6 }, // 28, F5, k07 | ||
| 167 | { 0, CS4_SW6, CS5_SW6, CS6_SW6 }, // 29, 5, k46 | ||
| 168 | { 0, CS7_SW6, CS8_SW6, CS9_SW6 }, // 30, T, k41 | ||
| 169 | { 0, CS10_SW6, CS11_SW6, CS12_SW6 }, // 31, G, k43 | ||
| 170 | { 0, CS13_SW6, CS14_SW6, CS15_SW6 }, // 32, B, k45 | ||
| 171 | { 0, CS16_SW6, CS17_SW6, CS18_SW6 }, // 33, SPACE, k94 | ||
| 172 | { 0, CS1_SW7, CS2_SW7, CS3_SW7 }, // 34, F6, k63 | ||
| 173 | { 0, CS4_SW7, CS5_SW7, CS6_SW7 }, // 35, 6, k56 | ||
| 174 | { 0, CS7_SW7, CS8_SW7, CS9_SW7 }, // 36, Y, k51 | ||
| 175 | { 0, CS10_SW7, CS11_SW7, CS12_SW7 }, // 37, H, k53 | ||
| 176 | { 0, CS13_SW7, CS14_SW7, CS15_SW7 }, // 38, N, k55 | ||
| 177 | { 0, CS1_SW8, CS2_SW8, CS3_SW8 }, // 39, F7, k71 | ||
| 178 | { 0, CS4_SW8, CS5_SW8, CS6_SW8 }, // 40, 7, k57 | ||
| 179 | { 0, CS7_SW8, CS8_SW8, CS9_SW8 }, // 41, U, k50 | ||
| 180 | { 0, CS10_SW8, CS11_SW8, CS12_SW8 }, // 42, J, k52 | ||
| 181 | { 0, CS13_SW8, CS14_SW8, CS15_SW8 }, // 43, M, k54 | ||
| 182 | { 0, CS1_SW9, CS2_SW9, CS3_SW9 }, // 44, F8, k76 | ||
| 183 | { 0, CS4_SW9, CS5_SW9, CS6_SW9 }, // 45, 8, k67 | ||
| 184 | { 0, CS7_SW9, CS8_SW9, CS9_SW9 }, // 46, I, k60 | ||
| 185 | { 0, CS10_SW9, CS11_SW9, CS12_SW9 }, // 47, K, k62 | ||
| 186 | { 0, CS13_SW9, CS14_SW9, CS15_SW9 }, // 48, ,, k64 | ||
| 187 | { 0, CS16_SW9, CS17_SW9, CS18_SW9 }, // 49, Alt_R, k95 | ||
| 188 | { 0, CS1_SW10, CS2_SW10, CS3_SW10 }, // 50, F9, ka6 | ||
| 189 | { 0, CS4_SW10, CS5_SW10, CS6_SW10 }, // 51, 9, k77 | ||
| 190 | { 0, CS7_SW10, CS8_SW10, CS9_SW10 }, // 52, O, k70 | ||
| 191 | { 0, CS10_SW10, CS11_SW10, CS12_SW10 }, // 53, L, k72 | ||
| 192 | { 0, CS13_SW10, CS14_SW10, CS15_SW10 }, // 54, ., k74 | ||
| 193 | { 0, CS16_SW10, CS17_SW10, CS18_SW10 }, // 55, FN, k92 | ||
| 194 | { 0, CS1_SW11, CS2_SW11, CS3_SW11 }, // 56, F10, ka7 | ||
| 195 | { 0, CS4_SW11, CS5_SW11, CS6_SW11 }, // 57, 0, k87 | ||
| 196 | { 0, CS7_SW11, CS8_SW11, CS9_SW11 }, // 58, P, k80 | ||
| 197 | { 0, CS10_SW11, CS11_SW11, CS12_SW11 }, // 59, ;, k82 | ||
| 198 | { 0, CS13_SW11, CS14_SW11, CS15_SW11 }, // 60, ?, k85 | ||
| 199 | { 0, CS1_SW12, CS2_SW12, CS3_SW12 }, // 61, F11, ka3 | ||
| 200 | { 0, CS4_SW12, CS5_SW12, CS6_SW12 }, // 62, -, k86 | ||
| 201 | { 0, CS7_SW12, CS8_SW12, CS9_SW12 }, // 63, [, k81 | ||
| 202 | { 0, CS10_SW12, CS11_SW12, CS12_SW12 }, // 64, ", k83 | ||
| 203 | { 0, CS16_SW12, CS17_SW12, CS18_SW12 }, // 65, Ct_R, k04 | ||
| 204 | |||
| 205 | { 1, CS1_SW1, CS2_SW1, CS3_SW1 }, // 66, F12, ka5 | ||
| 206 | { 1, CS13_SW1, CS14_SW1, CS15_SW1 }, // 67, LED, l01 | ||
| 207 | { 1, CS16_SW1, CS17_SW1, CS18_SW1 }, // 68, LED, l11 | ||
| 208 | { 1, CS4_SW2, CS5_SW2, CS6_SW2 }, // 69, Prt, k97 | ||
| 209 | { 1, CS13_SW2, CS14_SW2, CS15_SW2 }, // 70, LED, l02 | ||
| 210 | { 1, CS16_SW2, CS17_SW2, CS18_SW2 }, // 71, LED, l12 | ||
| 211 | { 1, CS4_SW3, CS5_SW3, CS6_SW3 }, // 72, Del, k65 | ||
| 212 | { 1, CS13_SW3, CS14_SW3, CS15_SW3 }, // 73, LED, l03 | ||
| 213 | { 1, CS16_SW3, CS17_SW3, CS18_SW3 }, // 74, LED, l13 | ||
| 214 | { 1, CS4_SW4, CS5_SW4, CS6_SW4 }, // 75, PgUp, k15 | ||
| 215 | { 1, CS13_SW4, CS14_SW4, CS15_SW4 }, // 76, LED, l04 | ||
| 216 | { 1, CS16_SW4, CS17_SW4, CS18_SW4 }, // 77, LED, l14 | ||
| 217 | { 1, CS1_SW5, CS2_SW5, CS3_SW5 }, // 78, =, k66 | ||
| 218 | { 1, CS10_SW5, CS11_SW5, CS12_SW5 }, // 79, Right, k05 | ||
| 219 | { 1, CS13_SW5, CS14_SW5, CS15_SW5 }, // 80, LED, l05 | ||
| 220 | { 1, CS16_SW5, CS17_SW5, CS18_SW5 }, // 81, LED, l15 | ||
| 221 | { 1, CS4_SW6, CS5_SW6, CS6_SW6 }, // 82, End, k75 | ||
| 222 | { 1, CS13_SW6, CS14_SW6, CS15_SW6 }, // 83, LED, l06 | ||
| 223 | { 1, CS16_SW6, CS17_SW6, CS18_SW6 }, // 84, LED, l16 | ||
| 224 | { 1, CS1_SW7, CS2_SW7, CS3_SW7 }, // 85, BSpc, ka1 | ||
| 225 | { 1, CS4_SW7, CS5_SW7, CS6_SW7 }, // 86, PgDn, k25 | ||
| 226 | { 1, CS13_SW7, CS14_SW7, CS15_SW7 }, // 87, LED, l07 | ||
| 227 | { 1, CS16_SW7, CS17_SW7, CS18_SW7 }, // 88, LED, l17 | ||
| 228 | { 1, CS1_SW8, CS2_SW8, CS3_SW8 }, // 89, ], k61 | ||
| 229 | { 1, CS4_SW8, CS5_SW8, CS6_SW8 }, // 90, Sh_R, k91 | ||
| 230 | { 1, CS13_SW8, CS14_SW8, CS15_SW8 }, // 91, LED, l08 | ||
| 231 | { 1, CS16_SW8, CS17_SW8, CS18_SW8 }, // 92, LED, l18 | ||
| 232 | { 1, CS1_SW9, CS2_SW9, CS3_SW9 }, // 93, \, ka2 | ||
| 233 | { 1, CS4_SW9, CS5_SW9, CS6_SW9 }, // 94, Up, k35 | ||
| 234 | { 1, CS4_SW10, CS5_SW10, CS6_SW10 }, // 95, Left, k03 | ||
| 235 | { 1, CS1_SW11, CS2_SW11, CS3_SW11 }, // 96, Enter, ka4 | ||
| 236 | { 1, CS4_SW11, CS5_SW11, CS6_SW11 }, // 97, Down, k73 | ||
| 237 | }; | ||
| 238 | #endif | ||
diff --git a/keyboards/gmmk/pro/rules.mk b/keyboards/gmmk/pro/rules.mk index b12d055a3..6221d6408 100644 --- a/keyboards/gmmk/pro/rules.mk +++ b/keyboards/gmmk/pro/rules.mk | |||
| @@ -21,3 +21,5 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
| 22 | AUDIO_ENABLE = no # Audio output | 22 | AUDIO_ENABLE = no # Audio output |
| 23 | ENCODER_ENABLE = yes | 23 | ENCODER_ENABLE = yes |
| 24 | RGB_MATRIX_ENABLE = yes | ||
| 25 | RGB_MATRIX_DRIVER = AW20216 | ||
diff --git a/keyboards/handwired/colorlice/config.h b/keyboards/handwired/colorlice/config.h index 206a4004e..0148817f3 100644 --- a/keyboards/handwired/colorlice/config.h +++ b/keyboards/handwired/colorlice/config.h | |||
| @@ -49,7 +49,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 49 | /* RGB LEDs */ | 49 | /* RGB LEDs */ |
| 50 | #define RGB_DI_PIN B1 | 50 | #define RGB_DI_PIN B1 |
| 51 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 51 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 52 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 52 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 53 | #define RGB_MATRIX_KEYPRESSES | 53 | #define RGB_MATRIX_KEYPRESSES |
| 54 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 54 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 55 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 55 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/handwired/frankie_macropad/keymaps/default/config.h b/keyboards/handwired/frankie_macropad/keymaps/default/config.h new file mode 100644 index 000000000..dd687cad5 --- /dev/null +++ b/keyboards/handwired/frankie_macropad/keymaps/default/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2021 QMK | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #define LAYER_STATE_8BIT | ||
diff --git a/keyboards/handwired/hnah40rgb/config.h b/keyboards/handwired/hnah40rgb/config.h index e6271738c..3d558f97f 100644 --- a/keyboards/handwired/hnah40rgb/config.h +++ b/keyboards/handwired/hnah40rgb/config.h | |||
| @@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 60 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 60 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 61 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 61 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 62 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 62 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 63 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 63 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 64 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 64 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 65 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 65 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 66 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 66 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
diff --git a/keyboards/handwired/p65rgb/config.h b/keyboards/handwired/p65rgb/config.h index c50fc2826..142d3c03e 100644 --- a/keyboards/handwired/p65rgb/config.h +++ b/keyboards/handwired/p65rgb/config.h | |||
| @@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 40 | 40 | ||
| 41 | #define RGB_DI_PIN B4 | 41 | #define RGB_DI_PIN B4 |
| 42 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 42 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 43 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 43 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 44 | #define RGB_MATRIX_KEYPRESSES | 44 | #define RGB_MATRIX_KEYPRESSES |
| 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 45 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 46 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 46 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/helix/rev3_4rows/config.h b/keyboards/helix/rev3_4rows/config.h index 9102104bf..95eb8bf0c 100644 --- a/keyboards/helix/rev3_4rows/config.h +++ b/keyboards/helix/rev3_4rows/config.h | |||
| @@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/helix/rev3_5rows/config.h b/keyboards/helix/rev3_5rows/config.h index 4dda76206..a373de7d1 100644 --- a/keyboards/helix/rev3_5rows/config.h +++ b/keyboards/helix/rev3_5rows/config.h | |||
| @@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 68 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 69 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 70 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 71 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 72 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 73 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 74 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
diff --git a/keyboards/hs60/v1/config.h b/keyboards/hs60/v1/config.h index 68c75b2af..41246b6ee 100644 --- a/keyboards/hs60/v1/config.h +++ b/keyboards/hs60/v1/config.h | |||
| @@ -118,7 +118,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 118 | //#define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) | 118 | //#define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) |
| 119 | 119 | ||
| 120 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 120 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 121 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 121 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 122 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 215 | 122 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 215 |
| 123 | 123 | ||
| 124 | #define DRIVER_ADDR_1 0b1110100 | 124 | #define DRIVER_ADDR_1 0b1110100 |
diff --git a/keyboards/kbdfans/bella/rgb/config.h b/keyboards/kbdfans/bella/rgb/config.h index f56049690..07594a34a 100644 --- a/keyboards/kbdfans/bella/rgb/config.h +++ b/keyboards/kbdfans/bella/rgb/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | /* disable these deprecated features by default */ | 37 | /* disable these deprecated features by default */ |
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/kbdfans/bella/rgb_iso/config.h b/keyboards/kbdfans/bella/rgb_iso/config.h index fc7a9d7c0..4fda99867 100644 --- a/keyboards/kbdfans/bella/rgb_iso/config.h +++ b/keyboards/kbdfans/bella/rgb_iso/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | /* disable these deprecated features by default */ | 37 | /* disable these deprecated features by default */ |
| 38 | #ifdef RGB_MATRIX_ENABLE | 38 | #ifdef RGB_MATRIX_ENABLE |
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 42 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 43 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h index a832110d3..b0b7e1dad 100644 --- a/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h +++ b/keyboards/kbdfans/kbd67/mkiirgb/v1/config.h | |||
| @@ -16,9 +16,9 @@ | |||
| 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 17 | #define DEBOUNCE 3 | 17 | #define DEBOUNCE 3 |
| 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 20 | #define RGB_MATRIX_KEYPRESSES | 20 | #define RGB_MATRIX_KEYPRESSES |
| 21 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 21 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 22 | #define DISABLE_RGB_MATRIX_BAND_SAT | 22 | #define DISABLE_RGB_MATRIX_BAND_SAT |
| 23 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 23 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
| 24 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h b/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h index 1ac9c770d..51e732f10 100644 --- a/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h +++ b/keyboards/kbdfans/kbd67/mkiirgb/v2/config.h | |||
| @@ -16,10 +16,10 @@ | |||
| 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 17 | #define DEBOUNCE 3 | 17 | #define DEBOUNCE 3 |
| 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 20 | #define RGB_MATRIX_KEYPRESSES | 20 | #define RGB_MATRIX_KEYPRESSES |
| 21 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 21 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
| 22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 23 | #define DISABLE_RGB_MATRIX_BAND_SAT | 23 | #define DISABLE_RGB_MATRIX_BAND_SAT |
| 24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
| 25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h b/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h index a3ed4f762..90fb10ebb 100644 --- a/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h +++ b/keyboards/kbdfans/kbd67/rev1/keymaps/default/config.h | |||
| @@ -16,4 +16,4 @@ | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | // place overrides here | 19 | #define LAYER_STATE_8BIT |
diff --git a/keyboards/kbdfans/kbdmini/config.h b/keyboards/kbdfans/kbdmini/config.h index 5a36e983d..fc65f4341 100644 --- a/keyboards/kbdfans/kbdmini/config.h +++ b/keyboards/kbdfans/kbdmini/config.h | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | 35 | ||
| 36 | #ifdef RGB_MATRIX_ENABLE | 36 | #ifdef RGB_MATRIX_ENABLE |
| 37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 39 | #define RGB_MATRIX_KEYPRESSES | 39 | #define RGB_MATRIX_KEYPRESSES |
| 40 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 40 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 41 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 41 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/kbdfans/maja/config.h b/keyboards/kbdfans/maja/config.h index d8553766b..3722c8381 100755 --- a/keyboards/kbdfans/maja/config.h +++ b/keyboards/kbdfans/maja/config.h | |||
| @@ -18,9 +18,9 @@ | |||
| 18 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 18 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 19 | #define DEBOUNCE 3 | 19 | #define DEBOUNCE 3 |
| 20 | #define RGB_DISABLE_AFTER_TIMEOUT 0 | 20 | #define RGB_DISABLE_AFTER_TIMEOUT 0 |
| 21 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 21 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 22 | #define RGB_MATRIX_KEYPRESSES | 22 | #define RGB_MATRIX_KEYPRESSES |
| 23 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 23 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 24 | #define DISABLE_RGB_MATRIX_BAND_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_SAT |
| 25 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 25 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
| 26 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 26 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/latin17rgb/config.h b/keyboards/latin17rgb/config.h index 013899f60..6a7ea8e78 100644 --- a/keyboards/latin17rgb/config.h +++ b/keyboards/latin17rgb/config.h | |||
| @@ -1,18 +1,18 @@ | |||
| 1 | /* Copyright 2021 18438880 | 1 | /* Copyright 2021 18438880 |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
| 7 | * | 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | * | 12 | * |
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| @@ -56,7 +56,7 @@ | |||
| 56 | 56 | ||
| 57 | #ifdef RGB_MATRIX_ENABLE | 57 | #ifdef RGB_MATRIX_ENABLE |
| 58 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 58 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 59 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 59 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 60 | # define RGB_MATRIX_KEYPRESSES | 60 | # define RGB_MATRIX_KEYPRESSES |
| 61 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 61 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 62 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 62 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| @@ -100,5 +100,3 @@ | |||
| 100 | #define RGBLIGHT_VAL_STEP 5 | 100 | #define RGBLIGHT_VAL_STEP 5 |
| 101 | #define RGBLIGHT_SLEEP | 101 | #define RGBLIGHT_SLEEP |
| 102 | #endif | 102 | #endif |
| 103 | |||
| 104 | |||
diff --git a/keyboards/latin60rgb/config.h b/keyboards/latin60rgb/config.h index bbe502054..97b481291 100644 --- a/keyboards/latin60rgb/config.h +++ b/keyboards/latin60rgb/config.h | |||
| @@ -1,18 +1,18 @@ | |||
| 1 | /* Copyright 2021 latincompass | 1 | /* Copyright 2021 latincompass |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
| 7 | * | 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | * | 12 | * |
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #pragma once | 16 | #pragma once |
| 17 | 17 | ||
| 18 | /* USB Device descriptor parameter */ | 18 | /* USB Device descriptor parameter */ |
| @@ -53,7 +53,7 @@ | |||
| 53 | 53 | ||
| 54 | #ifdef RGB_MATRIX_ENABLE | 54 | #ifdef RGB_MATRIX_ENABLE |
| 55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 57 | # define RGB_MATRIX_KEYPRESSES | 57 | # define RGB_MATRIX_KEYPRESSES |
| 58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| @@ -77,4 +77,3 @@ | |||
| 77 | # define DRIVER_1_LED_TOTAL 60 | 77 | # define DRIVER_1_LED_TOTAL 60 |
| 78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | 78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL |
| 79 | #endif | 79 | #endif |
| 80 | |||
diff --git a/keyboards/le_chiffre/config.h b/keyboards/le_chiffre/config.h index e14b4665f..af4d1e49c 100644 --- a/keyboards/le_chiffre/config.h +++ b/keyboards/le_chiffre/config.h | |||
| @@ -69,7 +69,7 @@ | |||
| 69 | 69 | ||
| 70 | #ifdef RGB_MATRIX_ENABLE | 70 | #ifdef RGB_MATRIX_ENABLE |
| 71 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 71 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 72 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 72 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 73 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 73 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 74 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 74 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 75 | #define RGB_MATRIX_HUE_STEP 8 | 75 | #define RGB_MATRIX_HUE_STEP 8 |
diff --git a/keyboards/marksard/rhymestone/rev1/config.h b/keyboards/marksard/rhymestone/rev1/config.h index 9a1bf0a1d..983392511 100644 --- a/keyboards/marksard/rhymestone/rev1/config.h +++ b/keyboards/marksard/rhymestone/rev1/config.h | |||
| @@ -93,7 +93,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 93 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 93 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 94 | // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 94 | // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 95 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 95 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 96 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 96 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 97 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 97 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 98 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 98 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 99 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 99 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
diff --git a/keyboards/massdrop/alt/keymaps/pregame/config.h b/keyboards/massdrop/alt/keymaps/pregame/config.h index acd041ce1..32dee56d3 100644 --- a/keyboards/massdrop/alt/keymaps/pregame/config.h +++ b/keyboards/massdrop/alt/keymaps/pregame/config.h | |||
| @@ -89,7 +89,7 @@ | |||
| 89 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 89 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
| 90 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 90 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
| 91 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 91 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 92 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 92 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 93 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 93 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 94 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 94 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 95 | #define RGBLIGHT_ANIMATIONS // Run RGB animations | 95 | #define RGBLIGHT_ANIMATIONS // Run RGB animations |
| @@ -103,7 +103,7 @@ | |||
| 103 | // #define RGBLIGHT_EFFECT_RGB_TEST // Enable RGB test animation mode. | 103 | // #define RGBLIGHT_EFFECT_RGB_TEST // Enable RGB test animation mode. |
| 104 | // #define RGBLIGHT_EFFECT_SNAKE // Enable snake animation mode. | 104 | // #define RGBLIGHT_EFFECT_SNAKE // Enable snake animation mode. |
| 105 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT // Enable static gradient mode. | 105 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT // Enable static gradient mode. |
| 106 | 106 | ||
| 107 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER // If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 | 107 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER // If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
| 108 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // The maximum brightness for the breathing mode. Valid values are 1 to 255 | 108 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // The maximum brightness for the breathing mode. Valid values are 1 to 255 |
| 109 | // #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 // How long to wait between light changes for the "Christmas" animation, in milliseconds | 109 | // #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 // How long to wait between light changes for the "Christmas" animation, in milliseconds |
diff --git a/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h b/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h index 0f2740013..f2a7e5038 100644 --- a/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h +++ b/keyboards/massdrop/alt/keymaps/urbanvanilla/config.h | |||
| @@ -24,4 +24,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 24 | #define RGB_MATRIX_LED_PROCESS_LIMIT 15 | 24 | #define RGB_MATRIX_LED_PROCESS_LIMIT 15 |
| 25 | #define RGB_MATRIX_LED_FLUSH_LIMIT 10 | 25 | #define RGB_MATRIX_LED_FLUSH_LIMIT 10 |
| 26 | 26 | ||
| 27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 27 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/config.h b/keyboards/massdrop/ctrl/keymaps/endgame/config.h index 0ef485591..ad738347a 100644 --- a/keyboards/massdrop/ctrl/keymaps/endgame/config.h +++ b/keyboards/massdrop/ctrl/keymaps/endgame/config.h | |||
| @@ -49,7 +49,7 @@ | |||
| 49 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 49 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
| 50 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 50 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
| 51 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 51 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 52 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 52 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 53 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 53 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 54 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 54 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 55 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations | 55 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations |
diff --git a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h index 6e16c3a5f..89c129c58 100644 --- a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h +++ b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config.h | |||
| @@ -67,7 +67,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 67 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation | 67 | // #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation |
| 68 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) | 68 | // #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness) |
| 69 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 69 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 70 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 70 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 71 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 71 | // #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 72 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 72 | // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 73 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations | 73 | // #define RGBLIGHT_ANIMATIONS // Run RGB animations |
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev1/config.h b/keyboards/mechlovin/adelais/rgb_led/rev1/config.h index 1ba7d27df..d75cbd3f2 100644 --- a/keyboards/mechlovin/adelais/rgb_led/rev1/config.h +++ b/keyboards/mechlovin/adelais/rgb_led/rev1/config.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 13 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 14 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 14 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 15 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 15 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 16 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 16 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 17 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 17 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 18 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 18 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 220 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 19 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set \ No newline at end of file | 19 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
diff --git a/keyboards/mechlovin/adelais/rgb_led/rev2/config.h b/keyboards/mechlovin/adelais/rgb_led/rev2/config.h index 38ffdd40a..c830edce2 100644 --- a/keyboards/mechlovin/adelais/rgb_led/rev2/config.h +++ b/keyboards/mechlovin/adelais/rgb_led/rev2/config.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #define PRODUCT_ID 0xAEC2 | 3 | #define PRODUCT_ID 0xAEC2 |
| 4 | #define PRODUCT Adelais En Ciel Rev2 | 4 | #define PRODUCT Adelais En Ciel Rev2 |
| 5 | 5 | ||
| 6 | #define MATRIX_ROW_PINS { B1, A0, C13, A1, A2} | 6 | #define MATRIX_ROW_PINS { B1, A0, C13, A1, A2} |
| 7 | #define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A7 } | 7 | #define MATRIX_COL_PINS { A10, A9, A8, B15, B14, B13, B12, B11, B10, B8, B4, B5, B3, C14, A7 } |
| @@ -31,7 +31,7 @@ | |||
| 31 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 31 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 32 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 32 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 33 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 33 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 34 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 34 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 35 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 35 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 36 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 36 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 37 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 37 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
| @@ -42,4 +42,4 @@ | |||
| 42 | #define ENCODERS_PAD_B { A3 } | 42 | #define ENCODERS_PAD_B { A3 } |
| 43 | #define ENCODER_RESOLUTION 4 | 43 | #define ENCODER_RESOLUTION 4 |
| 44 | 44 | ||
| 45 | #define TAP_CODE_DELAY 10 \ No newline at end of file | 45 | #define TAP_CODE_DELAY 10 |
diff --git a/keyboards/mechlovin/delphine/rgb_led/config.h b/keyboards/mechlovin/delphine/rgb_led/config.h index 4d5c853d0..9a653d759 100644 --- a/keyboards/mechlovin/delphine/rgb_led/config.h +++ b/keyboards/mechlovin/delphine/rgb_led/config.h | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | // #define RGBLIGHT_EFFECT_RGB_TEST | 24 | // #define RGBLIGHT_EFFECT_RGB_TEST |
| 25 | // #define RGBLIGHT_EFFECT_ALTERNATING | 25 | // #define RGBLIGHT_EFFECT_ALTERNATING |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | //rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0 | 28 | //rgb matrix setting// This is a 7-bit address, that gets left-shifted and bit 0 |
| 29 | // set to 0 for write, 1 for read (as per I2C protocol) | 29 | // set to 0 for write, 1 for read (as per I2C protocol) |
| 30 | // The address will vary depending on your wiring: | 30 | // The address will vary depending on your wiring: |
| @@ -41,7 +41,7 @@ | |||
| 41 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 41 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 42 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 42 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 43 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 43 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 44 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 44 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 45 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 45 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 46 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 46 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 47 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 47 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
diff --git a/keyboards/mechlovin/hannah60rgb/rev1/config.h b/keyboards/mechlovin/hannah60rgb/rev1/config.h index 20873e716..fd45ecca6 100644 --- a/keyboards/mechlovin/hannah60rgb/rev1/config.h +++ b/keyboards/mechlovin/hannah60rgb/rev1/config.h | |||
| @@ -11,8 +11,8 @@ | |||
| 11 | # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 11 | # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 12 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 12 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 13 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 13 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 14 | # define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 14 | // # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 15 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 15 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 16 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 16 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 17 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 17 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
| 18 | #endif \ No newline at end of file | 18 | #endif |
diff --git a/keyboards/mechlovin/hannah60rgb/rev2/config.h b/keyboards/mechlovin/hannah60rgb/rev2/config.h index 2bcffbc85..5e57f985d 100644 --- a/keyboards/mechlovin/hannah60rgb/rev2/config.h +++ b/keyboards/mechlovin/hannah60rgb/rev2/config.h | |||
| @@ -30,11 +30,11 @@ | |||
| 30 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 30 | #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 31 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 31 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 32 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 32 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 33 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 33 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 34 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 34 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 35 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 35 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 36 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set | 36 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_PINWHEEL // Sets the default mode, if none has been set |
| 37 | 37 | ||
| 38 | #if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE) | 38 | #if defined(RGBLIGHT_ENABLE) && defined(RGB_MATRIX_ENABLE) |
| 39 | # define RGB_MATRIX_DISABLE_KEYCODES | 39 | # define RGB_MATRIX_DISABLE_KEYCODES |
| 40 | #endif \ No newline at end of file | 40 | #endif |
diff --git a/keyboards/mechlovin/infinity87/rgb_rev1/config.h b/keyboards/mechlovin/infinity87/rgb_rev1/config.h index 0c16c684c..76c6e0db7 100644 --- a/keyboards/mechlovin/infinity87/rgb_rev1/config.h +++ b/keyboards/mechlovin/infinity87/rgb_rev1/config.h | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | // 0b0110001 AD <-> SCL | 35 | // 0b0110001 AD <-> SCL |
| 36 | // 0b0110010 AD <-> SDA | 36 | // 0b0110010 AD <-> SDA |
| 37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 39 | #define RGB_MATRIX_KEYPRESSES | 39 | #define RGB_MATRIX_KEYPRESSES |
| 40 | #define DISABLE_RGB_MATRIX_SPLASH | 40 | #define DISABLE_RGB_MATRIX_SPLASH |
| 41 | #define DISABLE_RGB_MATRIX_MULTISPLASH | 41 | #define DISABLE_RGB_MATRIX_MULTISPLASH |
diff --git a/keyboards/melgeek/mj61/config.h b/keyboards/melgeek/mj61/config.h index 164c04fb5..6ba19dd75 100644 --- a/keyboards/melgeek/mj61/config.h +++ b/keyboards/melgeek/mj61/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
| 38 | 38 | ||
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mj63/config.h b/keyboards/melgeek/mj63/config.h index 47ad2f96c..46d3b0fb7 100644 --- a/keyboards/melgeek/mj63/config.h +++ b/keyboards/melgeek/mj63/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
| 38 | 38 | ||
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mj64/config.h b/keyboards/melgeek/mj64/config.h index 29cb95f17..920d34acd 100644 --- a/keyboards/melgeek/mj64/config.h +++ b/keyboards/melgeek/mj64/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
| 38 | 38 | ||
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mj65/config.h b/keyboards/melgeek/mj65/config.h index 12a7c7ce1..399c243ac 100644 --- a/keyboards/melgeek/mj65/config.h +++ b/keyboards/melgeek/mj65/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
| 38 | 38 | ||
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/mojo75/config.h b/keyboards/melgeek/mojo75/config.h index c1a8083f1..d5bb4b454 100644 --- a/keyboards/melgeek/mojo75/config.h +++ b/keyboards/melgeek/mojo75/config.h | |||
| @@ -37,7 +37,7 @@ | |||
| 37 | #define NO_ACTION_FUNCTION | 37 | #define NO_ACTION_FUNCTION |
| 38 | 38 | ||
| 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 39 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 40 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 41 | #define RGB_MATRIX_KEYPRESSES | 41 | #define RGB_MATRIX_KEYPRESSES |
| 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 42 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 43 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/melgeek/z70ultra/config.h b/keyboards/melgeek/z70ultra/config.h index d5a9d0a89..e4530e2ea 100644 --- a/keyboards/melgeek/z70ultra/config.h +++ b/keyboards/melgeek/z70ultra/config.h | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | #define NO_ACTION_FUNCTION | 36 | #define NO_ACTION_FUNCTION |
| 37 | 37 | ||
| 38 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 38 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 40 | #define RGB_MATRIX_KEYPRESSES | 40 | #define RGB_MATRIX_KEYPRESSES |
| 41 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 | 41 | #define RGB_MATRIX_LED_PROCESS_LIMIT 4 |
| 42 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 42 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/miller/gm862/config.h b/keyboards/miller/gm862/config.h index 2b084efc2..e6e1b4c1d 100644 --- a/keyboards/miller/gm862/config.h +++ b/keyboards/miller/gm862/config.h | |||
| @@ -36,10 +36,10 @@ | |||
| 36 | #define DEBOUNCE 3 | 36 | #define DEBOUNCE 3 |
| 37 | #ifdef RGB_MATRIX_ENABLE | 37 | #ifdef RGB_MATRIX_ENABLE |
| 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 38 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 39 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 40 | # define RGB_MATRIX_KEYPRESSES | 40 | # define RGB_MATRIX_KEYPRESSES |
| 41 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 41 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 42 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 42 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 43 | # define DISABLE_RGB_MATRIX_BAND_SAT | 43 | # define DISABLE_RGB_MATRIX_BAND_SAT |
| 44 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 44 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
| 45 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 45 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/keyboards/monstargear/xo87/rgb/config.h b/keyboards/monstargear/xo87/rgb/config.h index 83eee8349..5ed0ed445 100644 --- a/keyboards/monstargear/xo87/rgb/config.h +++ b/keyboards/monstargear/xo87/rgb/config.h | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | #define DIODE_DIRECTION ROW2COL | 36 | #define DIODE_DIRECTION ROW2COL |
| 37 | #define RGB_DI_PIN D7 | 37 | #define RGB_DI_PIN D7 |
| 38 | #define DRIVER_LED_TOTAL 110 | 38 | #define DRIVER_LED_TOTAL 110 |
| 39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 39 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 40 | 40 | ||
| 41 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255. | 41 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255. |
| 42 | #define RGBLIGHT_LIMIT_VAL 100 // limits maximum brightness of LEDs to 100 out of 255. | 42 | #define RGBLIGHT_LIMIT_VAL 100 // limits maximum brightness of LEDs to 100 out of 255. |
diff --git a/keyboards/moonlander/config.h b/keyboards/moonlander/config.h index c88feea3d..c1a139dc7 100644 --- a/keyboards/moonlander/config.h +++ b/keyboards/moonlander/config.h | |||
| @@ -91,7 +91,7 @@ | |||
| 91 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175 | 91 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 175 |
| 92 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 92 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 93 | #define RGB_MATRIX_KEYPRESSES | 93 | #define RGB_MATRIX_KEYPRESSES |
| 94 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 94 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 95 | 95 | ||
| 96 | #define MUSIC_MAP | 96 | #define MUSIC_MAP |
| 97 | 97 | ||
diff --git a/keyboards/mt84/keymaps/default/config.h b/keyboards/mt84/keymaps/default/config.h new file mode 100644 index 000000000..dd687cad5 --- /dev/null +++ b/keyboards/mt84/keymaps/default/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2021 QMK | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #define LAYER_STATE_8BIT | ||
diff --git a/keyboards/naked48/keymaps/salicylic/config.h b/keyboards/naked48/keymaps/salicylic/config.h index b6372db3b..71a43e208 100644 --- a/keyboards/naked48/keymaps/salicylic/config.h +++ b/keyboards/naked48/keymaps/salicylic/config.h | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 31 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 32 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 32 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 33 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 33 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 34 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 34 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 35 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 35 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 36 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 36 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 37 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 37 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| @@ -41,4 +41,3 @@ | |||
| 41 | # define RGB_MATRIX_VAL_STEP 5 | 41 | # define RGB_MATRIX_VAL_STEP 5 |
| 42 | # define RGB_MATRIX_SPD_STEP 10 | 42 | # define RGB_MATRIX_SPD_STEP 10 |
| 43 | #endif | 43 | #endif |
| 44 | |||
diff --git a/keyboards/opendeck/32/rev1/config.h b/keyboards/opendeck/32/rev1/config.h index 9f8ed7427..8b25ab256 100644 --- a/keyboards/opendeck/32/rev1/config.h +++ b/keyboards/opendeck/32/rev1/config.h | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | #define DRIVER_COUNT 1 | 38 | #define DRIVER_COUNT 1 |
| 39 | #define DRIVER_1_LED_TOTAL (4 * 8 * 3) | 39 | #define DRIVER_1_LED_TOTAL (4 * 8 * 3) |
| 40 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) | 40 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL) |
| 41 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 41 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 42 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL | 42 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_SPIRAL |
| 43 | #define RGB_MATRIX_DISABLE_KEYCODES | 43 | #define RGB_MATRIX_DISABLE_KEYCODES |
| 44 | 44 | ||
diff --git a/keyboards/percent/canoe_gen2/config.h b/keyboards/percent/canoe_gen2/config.h index bac5ebb3f..6409371d4 100644 --- a/keyboards/percent/canoe_gen2/config.h +++ b/keyboards/percent/canoe_gen2/config.h | |||
| @@ -64,4 +64,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 64 | #define RGB_MATRIX_STARTUP_SAT 255 | 64 | #define RGB_MATRIX_STARTUP_SAT 255 |
| 65 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS | 65 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS |
| 66 | #define RGB_MATRIX_STARTUP_SPD 127 | 66 | #define RGB_MATRIX_STARTUP_SPD 127 |
| 67 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 67 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
diff --git a/keyboards/phase_studio/titan65/config.h b/keyboards/phase_studio/titan65/config.h index 4104c2ec2..66ae4f20b 100644 --- a/keyboards/phase_studio/titan65/config.h +++ b/keyboards/phase_studio/titan65/config.h | |||
| @@ -47,5 +47,5 @@ | |||
| 47 | #define RGB_DI_PIN E6 | 47 | #define RGB_DI_PIN E6 |
| 48 | #define DRIVER_LED_TOTAL 67 | 48 | #define DRIVER_LED_TOTAL 67 |
| 49 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 49 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 50 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended | 50 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 51 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 51 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h index 7f8876496..5317a5156 100644 --- a/keyboards/planck/ez/config.h +++ b/keyboards/planck/ez/config.h | |||
| @@ -147,7 +147,7 @@ | |||
| 147 | 147 | ||
| 148 | #define RGB_MATRIX_KEYPRESSES | 148 | #define RGB_MATRIX_KEYPRESSES |
| 149 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 149 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 150 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | 150 | #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 151 | 151 | ||
| 152 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 | 152 | #define RGB_MATRIX_LED_PROCESS_LIMIT 5 |
| 153 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 153 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
diff --git a/keyboards/planck/rev6/config.h b/keyboards/planck/rev6/config.h index 4bc8a509f..18bb74096 100644 --- a/keyboards/planck/rev6/config.h +++ b/keyboards/planck/rev6/config.h | |||
| @@ -141,7 +141,7 @@ | |||
| 141 | #define WS2812_DMA_CHANNEL 2 | 141 | #define WS2812_DMA_CHANNEL 2 |
| 142 | 142 | ||
| 143 | #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED | 143 | #ifndef RGB_DISABLE_WHEN_USB_SUSPENDED |
| 144 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true | 144 | # define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 145 | #endif | 145 | #endif |
| 146 | 146 | ||
| 147 | #endif | 147 | #endif |
diff --git a/keyboards/setta21/keymaps/salicylic/config.h b/keyboards/setta21/keymaps/salicylic/config.h index 44b34aa2f..06e23ba7a 100644 --- a/keyboards/setta21/keymaps/salicylic/config.h +++ b/keyboards/setta21/keymaps/salicylic/config.h | |||
| @@ -27,7 +27,7 @@ | |||
| 27 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 27 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 28 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 28 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 29 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 29 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 30 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 30 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 31 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 31 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 32 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 32 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 33 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 33 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| @@ -37,4 +37,3 @@ | |||
| 37 | # define RGB_MATRIX_VAL_STEP 5 | 37 | # define RGB_MATRIX_VAL_STEP 5 |
| 38 | # define RGB_MATRIX_SPD_STEP 10 | 38 | # define RGB_MATRIX_SPD_STEP 10 |
| 39 | #endif | 39 | #endif |
| 40 | |||
diff --git a/keyboards/sofle/keymaps/devdev/config.h b/keyboards/sofle/keymaps/devdev/config.h index 7d597d991..32d071735 100644 --- a/keyboards/sofle/keymaps/devdev/config.h +++ b/keyboards/sofle/keymaps/devdev/config.h | |||
| @@ -1,18 +1,18 @@ | |||
| 1 | /* Copyright 2021 Dane Evans | 1 | /* Copyright 2021 Dane Evans |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
| 7 | * | 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | * | 12 | * |
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #pragma once | 16 | #pragma once |
| 17 | 17 | ||
| 18 | 18 | ||
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | #define CUSTOM_FONT | 30 | #define CUSTOM_FONT |
| 31 | 31 | ||
| 32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding | 32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | #define TAPPING_FORCE_HOLD | 35 | #define TAPPING_FORCE_HOLD |
| @@ -56,7 +56,7 @@ | |||
| 56 | 56 | ||
| 57 | #ifdef RGBLIGHT_ENABLE | 57 | #ifdef RGBLIGHT_ENABLE |
| 58 | #undef RGBLED_NUM | 58 | #undef RGBLED_NUM |
| 59 | 59 | ||
| 60 | //#define RGBLIGHT_ANIMATIONS | 60 | //#define RGBLIGHT_ANIMATIONS |
| 61 | //#define RGBLIGHT_EFFECT_BREATHING | 61 | //#define RGBLIGHT_EFFECT_BREATHING |
| 62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
| @@ -68,11 +68,11 @@ | |||
| 68 | //#define RGBLIGHT_EFFECT_RGB_TEST | 68 | //#define RGBLIGHT_EFFECT_RGB_TEST |
| 69 | //#define RGBLIGHT_EFFECT_ALTERNATING | 69 | //#define RGBLIGHT_EFFECT_ALTERNATING |
| 70 | //#define RGBLIGHT_EFFECT_TWINKLE | 70 | //#define RGBLIGHT_EFFECT_TWINKLE |
| 71 | 71 | ||
| 72 | #define RGBLED_NUM 70 | 72 | #define RGBLED_NUM 70 |
| 73 | //#define RGBLED_SPLIT | 73 | //#define RGBLED_SPLIT |
| 74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet | 74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet |
| 75 | 75 | ||
| 76 | //#define RGBLED_NUM 30 | 76 | //#define RGBLED_NUM 30 |
| 77 | #define RGBLIGHT_LIMIT_VAL 120 | 77 | #define RGBLIGHT_LIMIT_VAL 120 |
| 78 | #define RGBLIGHT_HUE_STEP 10 | 78 | #define RGBLIGHT_HUE_STEP 10 |
| @@ -84,11 +84,11 @@ | |||
| 84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 92 | 92 | ||
| 93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT | 93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT |
| 94 | 94 | ||
| @@ -127,4 +127,4 @@ | |||
| 127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH | 127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH |
| 128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH | 128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH |
| 129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
| 130 | #endif \ No newline at end of file | 130 | #endif |
diff --git a/keyboards/sofle/keymaps/killmaster/config.h b/keyboards/sofle/keymaps/killmaster/config.h new file mode 100644 index 000000000..2e6abe84e --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/config.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* Copyright 2021 Carlos Martins | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | /* The way how "handedness" is decided (which half is which), | ||
| 19 | see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness | ||
| 20 | for more options. | ||
| 21 | */ | ||
| 22 | |||
| 23 | #define RGB_DI_PIN D3 | ||
| 24 | |||
| 25 | #ifdef RGB_MATRIX_ENABLE | ||
| 26 | |||
| 27 | #define RGBLED_NUM 72 | ||
| 28 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
| 29 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | ||
| 30 | #define RGB_MATRIX_HUE_STEP 8 | ||
| 31 | #define RGB_MATRIX_SAT_STEP 8 | ||
| 32 | #define RGB_MATRIX_VAL_STEP 8 | ||
| 33 | #define RGB_MATRIX_SPD_STEP 10 | ||
| 34 | #define RGB_MATRIX_KEYPRESSES | ||
| 35 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 36 | #define RGB_MATRIX_SPLIT {36,36} | ||
| 37 | #define SPLIT_TRANSPORT_MIRROR | ||
| 38 | |||
| 39 | #endif | ||
| 40 | |||
| 41 | #ifdef RGBLIGHT_ENABLE | ||
| 42 | #define RGBLIGHT_SPLIT | ||
| 43 | #define RGBLED_NUM 70 | ||
| 44 | #define RGB_SPLIT {36,36} | ||
| 45 | #define RGBLIGHT_LIMIT_VAL 120 | ||
| 46 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 47 | // /*== all animations enable ==*/ | ||
| 48 | // #define RGBLIGHT_ANIMATIONS | ||
| 49 | // /*== or choose animations ==*/ | ||
| 50 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 51 | //#define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 52 | //#define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 53 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 54 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 55 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 56 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 57 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 58 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #define MEDIA_KEY_DELAY 2 | ||
| 62 | |||
| 63 | #define USB_POLLING_INTERVAL_MS 1 | ||
| 64 | #define QMK_KEYS_PER_SCAN 12 | ||
diff --git a/keyboards/sofle/keymaps/killmaster/keymap.c b/keyboards/sofle/keymaps/killmaster/keymap.c new file mode 100644 index 000000000..950dee36b --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/keymap.c | |||
| @@ -0,0 +1,403 @@ | |||
| 1 | /* Copyright 2021 Carlos Martins | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | #include <stdio.h> | ||
| 19 | |||
| 20 | enum sofle_layers { | ||
| 21 | /* _M_XYZ = Mac Os, _W_XYZ = Win/Linux */ | ||
| 22 | _QWERTY, | ||
| 23 | _LOWER, | ||
| 24 | _RAISE, | ||
| 25 | _ADJUST, | ||
| 26 | }; | ||
| 27 | |||
| 28 | enum custom_keycodes { | ||
| 29 | KC_QWERTY = SAFE_RANGE, | ||
| 30 | KC_LOWER, | ||
| 31 | KC_RAISE, | ||
| 32 | KC_ADJUST, | ||
| 33 | KC_PRVWD, | ||
| 34 | KC_NXTWD, | ||
| 35 | KC_LSTRT, | ||
| 36 | KC_LEND, | ||
| 37 | KC_DLINE | ||
| 38 | }; | ||
| 39 | |||
| 40 | |||
| 41 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 42 | /* | ||
| 43 | * QWERTY | ||
| 44 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 45 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | | ||
| 46 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 47 | * | ESC | Q | W | E | R | T | | Y | U | I | O | P | Bspc | | ||
| 48 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 49 | * | Tab | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' | | ||
| 50 | * |------+------+------+------+------+------| | | |------+------+------+------+------+------| | ||
| 51 | * |LShift| Z | X | C | V | B |-------| |-------| N | M | , | . | / |RShift| | ||
| 52 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 53 | * | LGUI | LAlt | LCTR |LOWER | /Space / \Enter \ |RAISE | RCTR | RAlt | RGUI | | ||
| 54 | * | | | | |/ / \ \ | | | | | | ||
| 55 | * `----------------------------------' '------''---------------------------' | ||
| 56 | */ | ||
| 57 | |||
| 58 | [_QWERTY] = LAYOUT( | ||
| 59 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | ||
| 60 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 61 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 62 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, | ||
| 63 | KC_LGUI,KC_LALT,KC_LCTRL, KC_LOWER, KC_SPC, KC_ENT, KC_RAISE, KC_RCTRL, KC_RALT, KC_RGUI | ||
| 64 | ), | ||
| 65 | /* LOWER | ||
| 66 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 67 | * | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | | ||
| 68 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 69 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | | ||
| 70 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 71 | * | Tab | ! | @ | # | $ | % |-------. ,-------| ^ | & | * | ( | ) | | | | ||
| 72 | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| | ||
| 73 | * | Shift| = | - | + | { | } |-------| |-------| [ | ] | ; | : | \ | Shift| | ||
| 74 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 75 | * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | | ||
| 76 | * | | | | |/ / \ \ | | | | | | ||
| 77 | * `----------------------------------' '------''---------------------------' | ||
| 78 | */ | ||
| 79 | [_LOWER] = LAYOUT( | ||
| 80 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 81 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_F12, | ||
| 82 | _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_PIPE, | ||
| 83 | _______, KC_EQL, KC_MINS, KC_PLUS, KC_LCBR, KC_RCBR, _______, _______, KC_LBRC, KC_RBRC, KC_SCLN, KC_COLN, KC_BSLS, _______, | ||
| 84 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 85 | ), | ||
| 86 | /* RAISE | ||
| 87 | * ,----------------------------------------. ,-----------------------------------------. | ||
| 88 | * | | | | | | | | | | | | | | | ||
| 89 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 90 | * | Esc | Ins | Pscr | Menu | |RGBTog| | | PWrd | Up | NWrd | DLine| Bspc | | ||
| 91 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 92 | * | Tab | LAt | LCtl |LShift| | Caps |-------. ,-------| | Left | Down | Rigth| Del | Bspc | | ||
| 93 | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| | ||
| 94 | * |Shift | Undo | Cut | Copy | Paste| |-------| |-------| | LStr | | LEnd | | Shift| | ||
| 95 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 96 | * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | | ||
| 97 | * | | | | |/ / \ \ | | | | | | ||
| 98 | * `----------------------------------' '------''---------------------------' | ||
| 99 | */ | ||
| 100 | [_RAISE] = LAYOUT( | ||
| 101 | _______, _______ , _______ , _______ , RGB_RMOD , RGB_MOD, _______, _______ , _______, _______ , _______ ,_______, | ||
| 102 | _______, KC_INS, KC_PSCR, KC_APP, XXXXXXX, RGB_TOG, KC_PGUP, KC_PRVWD, KC_UP, KC_NXTWD,KC_DLINE, KC_BSPC, | ||
| 103 | _______, KC_LALT, KC_LCTL, KC_LSFT, XXXXXXX, KC_CAPS, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL, KC_BSPC, | ||
| 104 | _______,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______, _______, XXXXXXX, KC_LSTRT, XXXXXXX, KC_LEND, XXXXXXX, _______, | ||
| 105 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 106 | ), | ||
| 107 | /* ADJUST | ||
| 108 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 109 | * | | | | | | | | | | | | | | | ||
| 110 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 111 | * | RESET| |QWERTY|COLEMAK| | | | | | | | | | | ||
| 112 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 113 | * | | |MACWIN| | | |-------. ,-------| | VOLDO| MUTE | VOLUP| | | | ||
| 114 | * |------+------+------+------+------+------| MUTE | | |------+------+------+------+------+------| | ||
| 115 | * | | | | | | |-------| |-------| | PREV | PLAY | NEXT | | | | ||
| 116 | * `-----------------------------------------/ / \ \-----------------------------------------' | ||
| 117 | * | LGUI | LAlt | LCTR |LOWER | /Enter / \Space \ |RAISE | RCTR | RAlt | RGUI | | ||
| 118 | * | | | | |/ / \ \ | | | | | | ||
| 119 | * `----------------------------------' '------''---------------------------' | ||
| 120 | */ | ||
| 121 | [_ADJUST] = LAYOUT( | ||
| 122 | XXXXXXX , XXXXXXX, XXXXXXX , XXXXXXX , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 123 | RESET , XXXXXXX, KC_QWERTY, XXXXXXX , CG_TOGG,XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 124 | XXXXXXX , XXXXXXX,CG_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLD, KC_MUTE, KC_VOLU, XXXXXXX, XXXXXXX, | ||
| 125 | XXXXXXX , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, XXXXXXX, XXXXXXX, | ||
| 126 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 127 | ) | ||
| 128 | }; | ||
| 129 | |||
| 130 | #ifdef OLED_DRIVER_ENABLE | ||
| 131 | |||
| 132 | static void render_logo(void) { | ||
| 133 | static const char PROGMEM bananas_logo[] = { | ||
| 134 | // 'killmaster_bananas', 128x32px | ||
| 135 | 0x00, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0xc0, 0xe0, 0x02, 0x0e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 142 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 143 | 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 144 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, | ||
| 145 | 0x00, 0x00, 0x80, 0xc0, 0x40, 0x00, 0x00, 0x00, 0x40, 0x40, 0xd8, 0xc8, 0x00, 0x00, 0x00, 0x00, | ||
| 146 | 0x08, 0x08, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0xf8, 0xf8, 0x00, 0x00, 0x00, | ||
| 147 | 0x00, 0x00, 0xc0, 0x40, 0x40, 0xc0, 0x80, 0x40, 0xc0, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, | ||
| 148 | 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0xc0, 0x40, 0x00, 0x00, 0x40, 0x40, 0xf0, | ||
| 149 | 0x40, 0x40, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x40, 0x40, 0xc0, 0x80, 0x00, 0x00, 0x00, | ||
| 150 | 0x40, 0xc0, 0x80, 0x40, 0x40, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 151 | 0x00, 0x01, 0x0f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 0xf0, | ||
| 152 | 0xe0, 0xc0, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, | ||
| 153 | 0x02, 0x07, 0x0d, 0x10, 0x20, 0x20, 0x00, 0x00, 0x20, 0x20, 0x3f, 0x3f, 0x20, 0x20, 0x00, 0x00, | ||
| 154 | 0x00, 0x00, 0x1f, 0x3f, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x3f, 0x20, 0x20, 0x20, | ||
| 155 | 0x00, 0x00, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x1c, 0x36, 0x22, 0x22, 0x22, | ||
| 156 | 0x1f, 0x20, 0x00, 0x00, 0x10, 0x23, 0x22, 0x22, 0x26, 0x3c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x1f, | ||
| 157 | 0x30, 0x20, 0x20, 0x20, 0x00, 0x00, 0x0f, 0x1f, 0x32, 0x22, 0x22, 0x32, 0x23, 0x00, 0x00, 0x00, | ||
| 158 | 0x20, 0x3f, 0x21, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 159 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x07, 0x07, 0x0f, 0x0f, 0x0f, 0x1f, 0x1f, | ||
| 160 | 0x1f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3e, 0x3e, 0x1c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 161 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 162 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 163 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 164 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 166 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 167 | }; | ||
| 168 | oled_write_raw_P(bananas_logo, sizeof(bananas_logo)); | ||
| 169 | } | ||
| 170 | |||
| 171 | static void print_status_narrow(void) { | ||
| 172 | // Print current mode | ||
| 173 | oled_write_P(PSTR("Sofle"), false); | ||
| 174 | oled_write_P(PSTR("\n\n\n"), false); | ||
| 175 | switch (get_highest_layer(default_layer_state)) { | ||
| 176 | case _QWERTY: | ||
| 177 | oled_write_ln_P(PSTR("QWERT"), false); | ||
| 178 | break; | ||
| 179 | default: | ||
| 180 | oled_write_P(PSTR("Undef"), false); | ||
| 181 | } | ||
| 182 | oled_write_P(PSTR("\n\n"), false); | ||
| 183 | // Print current layer | ||
| 184 | oled_write_ln_P(PSTR("Layer"), false); | ||
| 185 | switch (get_highest_layer(layer_state)) { | ||
| 186 | case _QWERTY: | ||
| 187 | oled_write_P(PSTR("Base\n"), false); | ||
| 188 | break; | ||
| 189 | case _RAISE: | ||
| 190 | oled_write_P(PSTR("Raise"), false); | ||
| 191 | break; | ||
| 192 | case _LOWER: | ||
| 193 | oled_write_P(PSTR("Lower"), false); | ||
| 194 | break; | ||
| 195 | case _ADJUST: | ||
| 196 | oled_write_P(PSTR("Adj\n"), false); | ||
| 197 | break; | ||
| 198 | default: | ||
| 199 | oled_write_ln_P(PSTR("Undef"), false); | ||
| 200 | } | ||
| 201 | oled_write_P(PSTR("\n\n"), false); | ||
| 202 | } | ||
| 203 | |||
| 204 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 205 | if (is_keyboard_master()) { | ||
| 206 | return OLED_ROTATION_270; | ||
| 207 | } | ||
| 208 | else { | ||
| 209 | return OLED_ROTATION_180; | ||
| 210 | } | ||
| 211 | return rotation; | ||
| 212 | } | ||
| 213 | |||
| 214 | void oled_task_user(void) { | ||
| 215 | if (is_keyboard_master()) { | ||
| 216 | print_status_narrow(); | ||
| 217 | } else { | ||
| 218 | render_logo(); | ||
| 219 | } | ||
| 220 | } | ||
| 221 | |||
| 222 | |||
| 223 | |||
| 224 | #endif // OLED_DRIVER_ENABLE | ||
| 225 | |||
| 226 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 227 | switch (keycode) { | ||
| 228 | case KC_QWERTY: | ||
| 229 | if (record->event.pressed) { | ||
| 230 | set_single_persistent_default_layer(_QWERTY); | ||
| 231 | } | ||
| 232 | return false; | ||
| 233 | case KC_LOWER: | ||
| 234 | if (record->event.pressed) { | ||
| 235 | layer_on(_LOWER); | ||
| 236 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 237 | } else { | ||
| 238 | layer_off(_LOWER); | ||
| 239 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 240 | } | ||
| 241 | return false; | ||
| 242 | case KC_RAISE: | ||
| 243 | if (record->event.pressed) { | ||
| 244 | layer_on(_RAISE); | ||
| 245 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 246 | } else { | ||
| 247 | layer_off(_RAISE); | ||
| 248 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 249 | } | ||
| 250 | return false; | ||
| 251 | case KC_ADJUST: | ||
| 252 | if (record->event.pressed) { | ||
| 253 | layer_on(_ADJUST); | ||
| 254 | } else { | ||
| 255 | layer_off(_ADJUST); | ||
| 256 | } | ||
| 257 | return false; | ||
| 258 | case KC_PRVWD: | ||
| 259 | if (record->event.pressed) { | ||
| 260 | if (keymap_config.swap_lctl_lgui) { | ||
| 261 | register_mods(mod_config(MOD_LALT)); | ||
| 262 | register_code(KC_LEFT); | ||
| 263 | } else { | ||
| 264 | register_mods(mod_config(MOD_LCTL)); | ||
| 265 | register_code(KC_LEFT); | ||
| 266 | } | ||
| 267 | } else { | ||
| 268 | if (keymap_config.swap_lctl_lgui) { | ||
| 269 | unregister_mods(mod_config(MOD_LALT)); | ||
| 270 | unregister_code(KC_LEFT); | ||
| 271 | } else { | ||
| 272 | unregister_mods(mod_config(MOD_LCTL)); | ||
| 273 | unregister_code(KC_LEFT); | ||
| 274 | } | ||
| 275 | } | ||
| 276 | break; | ||
| 277 | case KC_NXTWD: | ||
| 278 | if (record->event.pressed) { | ||
| 279 | if (keymap_config.swap_lctl_lgui) { | ||
| 280 | register_mods(mod_config(MOD_LALT)); | ||
| 281 | register_code(KC_RIGHT); | ||
| 282 | } else { | ||
| 283 | register_mods(mod_config(MOD_LCTL)); | ||
| 284 | register_code(KC_RIGHT); | ||
| 285 | } | ||
| 286 | } else { | ||
| 287 | if (keymap_config.swap_lctl_lgui) { | ||
| 288 | unregister_mods(mod_config(MOD_LALT)); | ||
| 289 | unregister_code(KC_RIGHT); | ||
| 290 | } else { | ||
| 291 | unregister_mods(mod_config(MOD_LCTL)); | ||
| 292 | unregister_code(KC_RIGHT); | ||
| 293 | } | ||
| 294 | } | ||
| 295 | break; | ||
| 296 | case KC_LSTRT: | ||
| 297 | if (record->event.pressed) { | ||
| 298 | if (keymap_config.swap_lctl_lgui) { | ||
| 299 | //CMD-arrow on Mac, but we have CTL and GUI swapped | ||
| 300 | register_mods(mod_config(MOD_LCTL)); | ||
| 301 | register_code(KC_LEFT); | ||
| 302 | } else { | ||
| 303 | register_code(KC_HOME); | ||
| 304 | } | ||
| 305 | } else { | ||
| 306 | if (keymap_config.swap_lctl_lgui) { | ||
| 307 | unregister_mods(mod_config(MOD_LCTL)); | ||
| 308 | unregister_code(KC_LEFT); | ||
| 309 | } else { | ||
| 310 | unregister_code(KC_HOME); | ||
| 311 | } | ||
| 312 | } | ||
| 313 | break; | ||
| 314 | case KC_LEND: | ||
| 315 | if (record->event.pressed) { | ||
| 316 | if (keymap_config.swap_lctl_lgui) { | ||
| 317 | //CMD-arrow on Mac, but we have CTL and GUI swapped | ||
| 318 | register_mods(mod_config(MOD_LCTL)); | ||
| 319 | register_code(KC_RIGHT); | ||
| 320 | } else { | ||
| 321 | register_code(KC_END); | ||
| 322 | } | ||
| 323 | } else { | ||
| 324 | if (keymap_config.swap_lctl_lgui) { | ||
| 325 | unregister_mods(mod_config(MOD_LCTL)); | ||
| 326 | unregister_code(KC_RIGHT); | ||
| 327 | } else { | ||
| 328 | unregister_code(KC_END); | ||
| 329 | } | ||
| 330 | } | ||
| 331 | break; | ||
| 332 | case KC_DLINE: | ||
| 333 | if (record->event.pressed) { | ||
| 334 | register_mods(mod_config(MOD_LCTL)); | ||
| 335 | register_code(KC_BSPC); | ||
| 336 | } else { | ||
| 337 | unregister_mods(mod_config(MOD_LCTL)); | ||
| 338 | unregister_code(KC_BSPC); | ||
| 339 | } | ||
| 340 | break; | ||
| 341 | } | ||
| 342 | return true; | ||
| 343 | } | ||
| 344 | |||
| 345 | #ifdef ENCODER_ENABLE | ||
| 346 | |||
| 347 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 348 | uint8_t temp_mod = get_mods(); | ||
| 349 | uint8_t temp_osm = get_oneshot_mods(); | ||
| 350 | bool is_ctrl = (temp_mod | temp_osm) & MOD_MASK_CTRL; | ||
| 351 | bool is_shift = (temp_mod | temp_osm) & MOD_MASK_SHIFT; | ||
| 352 | |||
| 353 | if (is_shift) { | ||
| 354 | if (index == 0) { /* First encoder */ | ||
| 355 | if (clockwise) { | ||
| 356 | rgb_matrix_increase_hue(); | ||
| 357 | } else { | ||
| 358 | rgb_matrix_decrease_hue(); | ||
| 359 | } | ||
| 360 | } else if (index == 1) { /* Second encoder */ | ||
| 361 | if (clockwise) { | ||
| 362 | rgb_matrix_decrease_sat(); | ||
| 363 | } else { | ||
| 364 | rgb_matrix_increase_sat(); | ||
| 365 | } | ||
| 366 | } | ||
| 367 | } else if (is_ctrl) { | ||
| 368 | if (index == 0) { /* First encoder */ | ||
| 369 | if (clockwise) { | ||
| 370 | rgb_matrix_increase_val(); | ||
| 371 | } else { | ||
| 372 | rgb_matrix_decrease_val(); | ||
| 373 | } | ||
| 374 | } else if (index == 1) { /* Second encoder */ | ||
| 375 | if (clockwise) { | ||
| 376 | rgb_matrix_increase_speed(); | ||
| 377 | } else { | ||
| 378 | rgb_matrix_decrease_speed(); | ||
| 379 | } | ||
| 380 | } | ||
| 381 | } else { | ||
| 382 | if (index == 1) { /* First encoder */ | ||
| 383 | if (clockwise) { | ||
| 384 | tap_code(KC_PGUP); | ||
| 385 | // tap_code(KC_MS_WH_UP); | ||
| 386 | } else { | ||
| 387 | tap_code(KC_PGDOWN); | ||
| 388 | // tap_code(KC_MS_WH_DOWN); | ||
| 389 | } | ||
| 390 | } else if (index == 0) { /* Second encoder */ | ||
| 391 | uint16_t mapped_code = 0; | ||
| 392 | if (clockwise) { | ||
| 393 | mapped_code = KC_VOLD; | ||
| 394 | } else { | ||
| 395 | mapped_code = KC_VOLU; | ||
| 396 | } | ||
| 397 | tap_code_delay(mapped_code, MEDIA_KEY_DELAY); | ||
| 398 | } | ||
| 399 | } | ||
| 400 | return true; | ||
| 401 | } | ||
| 402 | |||
| 403 | #endif | ||
diff --git a/keyboards/sofle/keymaps/killmaster/readme.md b/keyboards/sofle/keymaps/killmaster/readme.md new file mode 100644 index 000000000..6d6dea228 --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 |  | ||
| 2 |  | ||
| 3 | |||
| 4 | |||
| 5 | # Default keymap for Sofle Keyboard | ||
| 6 | |||
| 7 | Layout in [Keyboard Layout Editor](http://www.keyboard-layout-editor.com/#/gists/76efb423a46cbbea75465cb468eef7ff) and [adjust layer](http://www.keyboard-layout-editor.com/#/gists/4bcf66f922cfd54da20ba04905d56bd4) | ||
| 8 | |||
| 9 | |||
| 10 | Features: | ||
| 11 | |||
| 12 | - Symmetric modifiers (CMD/Super, Alt/Opt, Ctrl, Shift) | ||
| 13 | - Various modes, can be switched (using Adjust layer and the selected one is stored in EEPROM. | ||
| 14 | - Modes for Qwerty and Colemak support | ||
| 15 | - Modes for Mac vs Linux/Win support -> different order of modifiers and different action shortcuts on the "UPPER" layer (the red one in the image). Designed to simplify transtions when switching between operating systems often. | ||
| 16 | - The OLED on master half shows selected mode and caps lock state and is rotated. | ||
| 17 | - Left encoder controls volume up/down/mute. Right encoder PGUP/PGDOWN. | ||
| 18 | |||
| 19 | |||
diff --git a/keyboards/sofle/keymaps/killmaster/rules.mk b/keyboards/sofle/keymaps/killmaster/rules.mk new file mode 100644 index 000000000..38d611450 --- /dev/null +++ b/keyboards/sofle/keymaps/killmaster/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | EXTRAKEY_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
| 3 | RGB_MATRIX_ENABLE = yes | ||
| 4 | RGB_MATRIX_DRIVER = WS2812 | ||
diff --git a/keyboards/sofle/keymaps/rgb_default/config.h b/keyboards/sofle/keymaps/rgb_default/config.h index 7d597d991..32d071735 100644 --- a/keyboards/sofle/keymaps/rgb_default/config.h +++ b/keyboards/sofle/keymaps/rgb_default/config.h | |||
| @@ -1,18 +1,18 @@ | |||
| 1 | /* Copyright 2021 Dane Evans | 1 | /* Copyright 2021 Dane Evans |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation, either version 2 of the License, or | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
| 7 | * | 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | * | 12 | * |
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #pragma once | 16 | #pragma once |
| 17 | 17 | ||
| 18 | 18 | ||
| @@ -29,7 +29,7 @@ | |||
| 29 | 29 | ||
| 30 | #define CUSTOM_FONT | 30 | #define CUSTOM_FONT |
| 31 | 31 | ||
| 32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding | 32 | #define CUSTOM_LAYER_READ //if you remove this it causes issues - needs better guarding |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | #define TAPPING_FORCE_HOLD | 35 | #define TAPPING_FORCE_HOLD |
| @@ -56,7 +56,7 @@ | |||
| 56 | 56 | ||
| 57 | #ifdef RGBLIGHT_ENABLE | 57 | #ifdef RGBLIGHT_ENABLE |
| 58 | #undef RGBLED_NUM | 58 | #undef RGBLED_NUM |
| 59 | 59 | ||
| 60 | //#define RGBLIGHT_ANIMATIONS | 60 | //#define RGBLIGHT_ANIMATIONS |
| 61 | //#define RGBLIGHT_EFFECT_BREATHING | 61 | //#define RGBLIGHT_EFFECT_BREATHING |
| 62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | 62 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
| @@ -68,11 +68,11 @@ | |||
| 68 | //#define RGBLIGHT_EFFECT_RGB_TEST | 68 | //#define RGBLIGHT_EFFECT_RGB_TEST |
| 69 | //#define RGBLIGHT_EFFECT_ALTERNATING | 69 | //#define RGBLIGHT_EFFECT_ALTERNATING |
| 70 | //#define RGBLIGHT_EFFECT_TWINKLE | 70 | //#define RGBLIGHT_EFFECT_TWINKLE |
| 71 | 71 | ||
| 72 | #define RGBLED_NUM 70 | 72 | #define RGBLED_NUM 70 |
| 73 | //#define RGBLED_SPLIT | 73 | //#define RGBLED_SPLIT |
| 74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet | 74 | #define RGBLED_SPLIT { 35, 35 } // haven't figured out how to use this yet |
| 75 | 75 | ||
| 76 | //#define RGBLED_NUM 30 | 76 | //#define RGBLED_NUM 30 |
| 77 | #define RGBLIGHT_LIMIT_VAL 120 | 77 | #define RGBLIGHT_LIMIT_VAL 120 |
| 78 | #define RGBLIGHT_HUE_STEP 10 | 78 | #define RGBLIGHT_HUE_STEP 10 |
| @@ -84,11 +84,11 @@ | |||
| 84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 84 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 85 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| 86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 86 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 87 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 88 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) | 89 | // # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness) |
| 90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) | 90 | // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness) |
| 91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 91 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
| 92 | 92 | ||
| 93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT | 93 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT |
| 94 | 94 | ||
| @@ -127,4 +127,4 @@ | |||
| 127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH | 127 | // # define DISABLE_RGB_MATRIX_MULTISPLASH |
| 128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH | 128 | // # define DISABLE_RGB_MATRIX_SOLID_SPLASH |
| 129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 129 | // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
| 130 | #endif \ No newline at end of file | 130 | #endif |
diff --git a/keyboards/sofle/rev1/readme.md b/keyboards/sofle/rev1/readme.md new file mode 100644 index 000000000..629d568e6 --- /dev/null +++ b/keyboards/sofle/rev1/readme.md | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # Sofle Keyboard | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Sofle is 6×4+5 keys column-staggered split keyboard. Based on Lily58, Corne and Helix keyboards. | ||
| 6 | |||
| 7 | More details about the keyboard on my blog: [Let me introduce you SofleKeyboard - a split keyboard based on Lily58 and Crkbd](https://josef-adamcik.cz/electronics/let-me-introduce-you-sofle-keyboard-split-keyboard-based-on-lily58.html) | ||
| 8 | |||
| 9 | The current (temporary) build guide and a build log is available here: [SofleKeyboard build log/guide](https://josef-adamcik.cz/electronics/soflekeyboard-build-log-and-build-guide.html) | ||
| 10 | |||
| 11 | * Keyboard Maintainer: [Josef Adamcik](https://josef-adamcik.cz) [Twitter:@josefadamcik](https://twitter.com/josefadamcik) | ||
| 12 | * Hardware Supported: SofleKeyboard PCB, ProMicro | ||
| 13 | * Hardware Availability: [PCB & Case Data](https://github.com/josefadamcik/SofleKeyboard) | ||
| 14 | |||
| 15 | Make example for this keyboard (after setting up your build environment): | ||
| 16 | |||
| 17 | make sofle:default | ||
| 18 | |||
| 19 | Flashing example for this keyboard: | ||
| 20 | |||
| 21 | make sofle:default:flash | ||
| 22 | |||
| 23 | Press reset button on he keyboard when asked. | ||
| 24 | |||
| 25 | Disconnect the first half, connect the second one and repeat the process. | ||
| 26 | |||
| 27 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/sofle/rev1/rev1.c b/keyboards/sofle/rev1/rev1.c index bbb014c4d..88a28e6a4 100644 --- a/keyboards/sofle/rev1/rev1.c +++ b/keyboards/sofle/rev1/rev1.c | |||
| @@ -1 +1,87 @@ | |||
| 1 | /* Copyright 2021 Carlos Martins | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 1 | #include "sofle.h" | 17 | #include "sofle.h" |
| 18 | |||
| 19 | #ifdef RGB_MATRIX_ENABLE | ||
| 20 | // Physical Layout | ||
| 21 | // Columns | ||
| 22 | // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 | ||
| 23 | // ROWS | ||
| 24 | // 12 13 22 23 32 33 33 32 23 22 13 12 0 | ||
| 25 | // 02 03 04 04 03 02 | ||
| 26 | // 11 14 21 24 31 34 34 31 24 21 14 11 1 | ||
| 27 | // 01 01 | ||
| 28 | // 10 15 20 25 30 35 35 30 25 20 15 10 2 | ||
| 29 | // | ||
| 30 | // 09 16 19 26 29 36 36 29 26 19 16 09 3 | ||
| 31 | // | ||
| 32 | // 08 17 18 27 28 28 27 18 17 08 4 | ||
| 33 | // 07 06 05 05 06 07 | ||
| 34 | |||
| 35 | led_config_t g_led_config = { | ||
| 36 | { | ||
| 37 | { 11, 12, 21, 22, 31, 32 }, | ||
| 38 | { 10, 13, 20, 23, 30, 33 }, | ||
| 39 | { 9, 14, 19, 24, 29, 34}, | ||
| 40 | { 8, 15, 18, 25, 28, 35}, | ||
| 41 | { 7, 16, 17, 26, 27, NO_LED }, | ||
| 42 | { 47, 48, 57, 58, 67, 68}, | ||
| 43 | { 46, 49, 56, 59, 66, 69}, | ||
| 44 | { 45, 50, 55, 60, 65, 70}, | ||
| 45 | { 44, 51, 54, 61, 64, 71}, | ||
| 46 | { 43, 52, 53, 62, 63, NO_LED } | ||
| 47 | }, | ||
| 48 | { | ||
| 49 | // Left side underglow | ||
| 50 | {96, 40}, {16, 20}, {48, 10}, {80, 18}, {88, 60}, {56, 57}, {24,60}, | ||
| 51 | // Left side Matrix | ||
| 52 | {32, 57}, { 0, 48}, { 0, 36}, { 0, 24}, { 0, 12}, | ||
| 53 | {16, 12}, {16, 24}, {16, 36}, {16, 48}, {48, 55}, | ||
| 54 | {64, 57}, {32, 45}, {32, 33}, {32, 21}, {32, 9}, | ||
| 55 | {48, 7}, {48, 19}, {48, 31}, {48, 43}, {80, 59}, | ||
| 56 | {96, 64}, {64, 45}, {64, 33}, {64, 21}, {64, 9}, | ||
| 57 | {80, 10}, {80, 22}, {80, 34}, {80, 47}, | ||
| 58 | |||
| 59 | |||
| 60 | // Right side underglow | ||
| 61 | {128, 40}, {208, 20}, {176, 10}, {144, 18}, {136, 60}, {168, 57}, {200,60}, | ||
| 62 | // Right side Matrix | ||
| 63 | {192, 57}, {224, 48}, {224, 36}, {224, 24}, {224, 12}, | ||
| 64 | {208, 12}, {208, 24}, {208, 36}, {208, 48}, {176, 55}, | ||
| 65 | {160, 57}, {192, 45}, {192, 33}, {192, 21}, {192, 9}, | ||
| 66 | {176, 7}, {176, 19}, {176, 31}, {176, 43}, {144, 59}, | ||
| 67 | {128, 64}, {160, 45}, {160, 33}, {160, 21}, {160, 9}, | ||
| 68 | {144, 10}, {144, 22}, {144, 34}, {144, 47}, | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | LED_FLAG_NONE, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, | ||
| 72 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 73 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 74 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 75 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 76 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 77 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 78 | LED_FLAG_NONE, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, LED_FLAG_UNDERGLOW, | ||
| 79 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 80 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 81 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 82 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 83 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, | ||
| 84 | LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT | ||
| 85 | } | ||
| 86 | }; | ||
| 87 | #endif | ||
diff --git a/keyboards/terrazzo/config.h b/keyboards/terrazzo/config.h index 985110d16..907c94ff5 100644 --- a/keyboards/terrazzo/config.h +++ b/keyboards/terrazzo/config.h | |||
| @@ -83,13 +83,13 @@ so there is only one configuration. */ | |||
| 83 | 83 | ||
| 84 | #ifdef LED_MATRIX_ENABLE | 84 | #ifdef LED_MATRIX_ENABLE |
| 85 | 85 | ||
| 86 | #define LED_DRIVER_ADDR_1 0x74 | 86 | #define LED_DRIVER_ADDR_1 0x74 |
| 87 | #define LED_DRIVER_COUNT 1 | 87 | #define LED_DRIVER_COUNT 1 |
| 88 | #define DRIVER_LED_TOTAL 105 | 88 | #define DRIVER_LED_TOTAL 105 |
| 89 | #define LED_MATRIX_ROWS 15 | 89 | #define LED_MATRIX_ROWS 15 |
| 90 | #define LED_MATRIX_COLS 7 | 90 | #define LED_MATRIX_COLS 7 |
| 91 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 | 91 | #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20 |
| 92 | #define LED_DISABLE_WHEN_USB_SUSPENDED true | 92 | #define LED_DISABLE_WHEN_USB_SUSPENDED |
| 93 | 93 | ||
| 94 | #define DISABLE_LED_MATRIX_ALPHAS_MODS | 94 | #define DISABLE_LED_MATRIX_ALPHAS_MODS |
| 95 | #define DISABLE_LED_MATRIX_BREATHING | 95 | #define DISABLE_LED_MATRIX_BREATHING |
diff --git a/keyboards/tkc/portico/config.h b/keyboards/tkc/portico/config.h index 4a7da833f..ef6e46658 100644 --- a/keyboards/tkc/portico/config.h +++ b/keyboards/tkc/portico/config.h | |||
| @@ -45,7 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 45 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 46 | # define DEBOUNCE 3 | 46 | # define DEBOUNCE 3 |
| 47 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 47 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 48 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 48 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 49 | # define RGB_MATRIX_KEYPRESSES | 49 | # define RGB_MATRIX_KEYPRESSES |
| 50 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 50 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 51 | # define DISABLE_RGB_MATRIX_BAND_SAT | 51 | # define DISABLE_RGB_MATRIX_BAND_SAT |
diff --git a/keyboards/tokyo60/config.h b/keyboards/tokyokeyboard/tokyo60/config.h index 03dee74e9..03dee74e9 100644 --- a/keyboards/tokyo60/config.h +++ b/keyboards/tokyokeyboard/tokyo60/config.h | |||
diff --git a/keyboards/tokyo60/info.json b/keyboards/tokyokeyboard/tokyo60/info.json index 10d1bf093..10d1bf093 100644 --- a/keyboards/tokyo60/info.json +++ b/keyboards/tokyokeyboard/tokyo60/info.json | |||
diff --git a/keyboards/tokyo60/keymaps/default/config.h b/keyboards/tokyokeyboard/tokyo60/keymaps/default/config.h index 271f48d00..271f48d00 100644 --- a/keyboards/tokyo60/keymaps/default/config.h +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/default/config.h | |||
diff --git a/keyboards/tokyo60/keymaps/default/keymap.c b/keyboards/tokyokeyboard/tokyo60/keymaps/default/keymap.c index 9139d15bc..9139d15bc 100644 --- a/keyboards/tokyo60/keymaps/default/keymap.c +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/default/keymap.c | |||
diff --git a/keyboards/tokyo60/keymaps/swappedBottomRow/config.h b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/config.h index 271f48d00..271f48d00 100644 --- a/keyboards/tokyo60/keymaps/swappedBottomRow/config.h +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/config.h | |||
diff --git a/keyboards/tokyo60/keymaps/swappedBottomRow/keymap.c b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/keymap.c index 54b68f582..54b68f582 100644 --- a/keyboards/tokyo60/keymaps/swappedBottomRow/keymap.c +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/swappedBottomRow/keymap.c | |||
diff --git a/keyboards/tokyo60/keymaps/via/keymap.c b/keyboards/tokyokeyboard/tokyo60/keymaps/via/keymap.c index ffef9af79..ffef9af79 100644 --- a/keyboards/tokyo60/keymaps/via/keymap.c +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/via/keymap.c | |||
diff --git a/keyboards/tokyo60/keymaps/via/rules.mk b/keyboards/tokyokeyboard/tokyo60/keymaps/via/rules.mk index 1e5b99807..1e5b99807 100644 --- a/keyboards/tokyo60/keymaps/via/rules.mk +++ b/keyboards/tokyokeyboard/tokyo60/keymaps/via/rules.mk | |||
diff --git a/keyboards/tokyo60/readme.md b/keyboards/tokyokeyboard/tokyo60/readme.md index 74f4e07cc..56c31efad 100644 --- a/keyboards/tokyo60/readme.md +++ b/keyboards/tokyokeyboard/tokyo60/readme.md | |||
| @@ -1,15 +1,15 @@ | |||
| 1 | # Tokyo60 | 1 | # Tokyo60 |
| 2 | | 2 | |
| 3 |  | 3 |  |
| 4 | | 4 | |
| 5 | Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com). | 5 | Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com). |
| 6 | | 6 | |
| 7 | * Keyboard Maintainer: [Tokyo Keyboard](http://tokyokeyboard.com) | 7 | * Keyboard Maintainer: [Tokyo Keyboard](https://tokyokeyboard.com) |
| 8 | * Hardware Supported: Tokyo60 Rev.1 | 8 | * Hardware Supported: Tokyo60 Rev.1 - 4 |
| 9 | * Hardware Availability: [Drop](https://drop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open) | 9 | * Hardware Availability: [Drop](https://drop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open) |
| 10 | | 10 | |
| 11 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for this keyboard (after setting up your build environment): |
| 12 | | 12 | |
| 13 | make tokyo60:default | 13 | make tokyokeyboard/tokyo60:default |
| 14 | | 14 | |
| 15 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | 15 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
diff --git a/keyboards/tokyo60/rules.mk b/keyboards/tokyokeyboard/tokyo60/rules.mk index fa639b1ca..fa639b1ca 100644 --- a/keyboards/tokyo60/rules.mk +++ b/keyboards/tokyokeyboard/tokyo60/rules.mk | |||
diff --git a/keyboards/tokyo60/tokyo60.c b/keyboards/tokyokeyboard/tokyo60/tokyo60.c index 2126bb612..2126bb612 100644 --- a/keyboards/tokyo60/tokyo60.c +++ b/keyboards/tokyokeyboard/tokyo60/tokyo60.c | |||
diff --git a/keyboards/tokyo60/tokyo60.h b/keyboards/tokyokeyboard/tokyo60/tokyo60.h index 9eb5f3e62..9eb5f3e62 100644 --- a/keyboards/tokyo60/tokyo60.h +++ b/keyboards/tokyokeyboard/tokyo60/tokyo60.h | |||
diff --git a/keyboards/whitefox/config.h b/keyboards/whitefox/config.h index 4d7a460d2..1cdac01d0 100644 --- a/keyboards/whitefox/config.h +++ b/keyboards/whitefox/config.h | |||
| @@ -62,6 +62,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 62 | #define LED_BRIGHTNESS_LO 100 | 62 | #define LED_BRIGHTNESS_LO 100 |
| 63 | #define LED_BRIGHTNESS_HI 255 | 63 | #define LED_BRIGHTNESS_HI 255 |
| 64 | 64 | ||
| 65 | /* LED matrix driver */ | ||
| 66 | #define LED_DRIVER_ADDR_1 0x74 | ||
| 67 | #define LED_DRIVER_COUNT 1 | ||
| 68 | #define DRIVER_LED_TOTAL 71 | ||
| 69 | #define LED_DISABLE_WHEN_USB_SUSPENDED | ||
| 70 | |||
| 71 | /* i2c (for LED matrix) */ | ||
| 72 | #define I2C1_CLOCK_SPEED 400000 | ||
| 73 | #define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
| 74 | #define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2 | ||
| 75 | #define I2C1_BANK GPIOB | ||
| 76 | #define I2C1_SCL 0 | ||
| 77 | #define I2C1_SDA 1 | ||
| 78 | |||
| 65 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | 79 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. |
| 66 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | 80 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). |
| 67 | */ | 81 | */ |
diff --git a/keyboards/whitefox/rules.mk b/keyboards/whitefox/rules.mk index 771804369..7c1d0c3de 100644 --- a/keyboards/whitefox/rules.mk +++ b/keyboards/whitefox/rules.mk | |||
| @@ -25,16 +25,12 @@ COMMAND_ENABLE = yes # Commands for debug and configuration | |||
| 25 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 25 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 26 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 26 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 27 | NKRO_ENABLE = yes # USB Nkey Rollover | 27 | NKRO_ENABLE = yes # USB Nkey Rollover |
| 28 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 29 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 28 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
| 30 | BLUETOOTH_ENABLE = no # Enable Bluetooth | 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
| 31 | AUDIO_ENABLE = no # Audio output | 30 | AUDIO_ENABLE = no # Audio output |
| 32 | BACKLIGHT_DRIVER = custom | ||
| 33 | VISUALIZER_ENABLE = yes | ||
| 34 | 31 | ||
| 35 | LED_DRIVER = is31fl3731c | 32 | LED_MATRIX_ENABLE = yes |
| 36 | LED_WIDTH = 16 | 33 | LED_MATRIX_DRIVER = IS31FL3731 |
| 37 | LED_HEIGHT = 5 | ||
| 38 | 34 | ||
| 39 | LAYOUTS = 65_ansi 65_ansi_blocker 65_ansi_blocker_split_bs 65_iso 65_iso_blocker 65_iso_blocker_split_bs | 35 | LAYOUTS = 65_ansi 65_ansi_blocker 65_ansi_blocker_split_bs 65_iso 65_iso_blocker 65_iso_blocker_split_bs |
| 40 | 36 | ||
diff --git a/keyboards/whitefox/whitefox.c b/keyboards/whitefox/whitefox.c index ea083c6e0..f10f0fd5c 100644 --- a/keyboards/whitefox/whitefox.c +++ b/keyboards/whitefox/whitefox.c | |||
| @@ -16,3 +16,79 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include "whitefox.h" | 18 | #include "whitefox.h" |
| 19 | |||
| 20 | #ifdef LED_MATRIX_ENABLE | ||
| 21 | const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { | ||
| 22 | // The numbers in the comments are the led numbers DXX on the PCB | ||
| 23 | /* Refer to IS31 manual for these locations | ||
| 24 | * driver | ||
| 25 | * | LED address | ||
| 26 | * | | */ | ||
| 27 | // 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ||
| 28 | { 0, C1_1 }, { 0, C1_2 }, { 0, C1_3 }, { 0, C1_4 }, { 0, C1_5 }, { 0, C1_6 }, { 0, C1_7 }, { 0, C1_8 }, { 0, C2_1 }, { 0, C2_2 }, { 0, C2_3 }, { 0, C2_4 }, { 0, C2_5 }, { 0, C2_6 }, { 0, C2_7 }, { 0, C2_8 }, | ||
| 29 | // 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ||
| 30 | { 0, C3_1 }, { 0, C3_2 }, { 0, C3_3 }, { 0, C3_4 }, { 0, C3_5 }, { 0, C3_6 }, { 0, C3_7 }, { 0, C3_8 }, { 0, C4_1 }, { 0, C4_2 }, { 0, C4_3 }, { 0, C4_4 }, { 0, C4_5 }, { 0, C4_6 }, { 0, C4_7 }, | ||
| 31 | // 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | ||
| 32 | { 0, C4_8 }, { 0, C5_1 }, { 0, C5_2 }, { 0, C5_3 }, { 0, C5_4 }, { 0, C5_5 }, { 0, C5_6 }, { 0, C5_7 }, { 0, C5_8 }, { 0, C6_1 }, { 0, C6_2 }, { 0, C6_3 }, { 0, C6_4 }, { 0, C6_5 }, { 0, C6_6 }, | ||
| 33 | // 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | ||
| 34 | { 0, C6_7 }, { 0, C6_8 }, { 0, C7_1 }, { 0, C7_2 }, { 0, C7_3 }, { 0, C7_4 }, { 0, C7_5 }, { 0, C7_6 }, { 0, C7_7 }, { 0, C7_8 }, { 0, C8_1 }, { 0, C8_2 }, { 0, C8_3 }, { 0, C8_4 }, { 0, C8_5 }, | ||
| 35 | // 62 63 64 65 66 67 68 69 70 71 | ||
| 36 | { 0, C8_6 }, { 0, C8_7 }, { 0, C8_8 }, { 0, C9_1 }, { 0, C9_2 }, { 0, C9_3 }, { 0, C9_4 }, { 0, C9_5 }, { 0, C9_6 }, { 0, C9_7 }, | ||
| 37 | }; | ||
| 38 | |||
| 39 | led_config_t g_led_config = { | ||
| 40 | { | ||
| 41 | // Key Matrix to LED Index | ||
| 42 | { 0, 1, 2, 3, 4, 5, 6, 7, 8 }, | ||
| 43 | { 9, 10, 11, 12, 13, 14, 15, 16, 17 }, | ||
| 44 | { 18, 19, 20, 21, 22, 23, 24, 25, 26 }, | ||
| 45 | { 27, 28, 29, 30, 31, 32, 33, 34, 35 }, | ||
| 46 | { 36, 37, 38, 39, 40, 41, 42, 43, 44 }, | ||
| 47 | { 45, 46, 47, 48, 49, 50, 51, 52, 53 }, | ||
| 48 | { 54, 55, 56, 57, 58, 59, 60, 61, 62 }, | ||
| 49 | { 63, 64, 65, 66, 67, 68, 69, 70, NO_LED }, | ||
| 50 | }, { | ||
| 51 | // LED Index to Physical Position | ||
| 52 | { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 119, 0 }, { 134, 0 }, { 149, 0 }, { 164, 0 }, { 179, 0 }, { 194, 0 }, { 209, 0 }, { 224, 0 }, | ||
| 53 | { 4, 16 }, { 22, 16 }, { 37, 16 }, { 52, 16 }, { 67, 16 }, { 82, 16 }, { 97, 16 }, { 112, 16 }, { 127, 16 }, { 142, 16 }, { 157, 16 }, { 172, 16 }, { 187, 16 }, { 205, 16 }, { 224, 16 }, | ||
| 54 | { 6, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 175, 32 }, { 190, 32 }, { 207, 32 }, { 224, 32 }, | ||
| 55 | { 2, 48 }, { 19, 48 }, { 34, 48 }, { 49, 48 }, { 63, 48 }, { 78, 48 }, { 93, 48 }, { 108, 48 }, { 123, 48 }, { 138, 48 }, { 153, 48 }, { 168, 48 }, { 189, 48 }, { 209, 48 }, { 224, 48 }, | ||
| 56 | { 2, 64 }, { 21, 64 }, { 39, 64 }, { 95, 64 }, { 149, 64 }, { 164, 64 }, { 179, 64 }, { 194, 64 }, { 209, 64 }, { 224, 64 } | ||
| 57 | }, { | ||
| 58 | // LED Index to Flag | ||
| 59 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 60 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, | ||
| 61 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, | ||
| 62 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, | ||
| 63 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
| 64 | } | ||
| 65 | }; | ||
| 66 | #endif | ||
| 67 | |||
| 68 | void keyboard_pre_init_kb(void) { | ||
| 69 | #ifdef LED_MATRIX_ENABLE | ||
| 70 | // Turn on LED controller | ||
| 71 | setPinOutput(B16); | ||
| 72 | writePinHigh(B16); | ||
| 73 | #endif | ||
| 74 | keyboard_pre_init_user(); | ||
| 75 | } | ||
| 76 | |||
| 77 | void matrix_init_kb(void) { | ||
| 78 | // put your keyboard start-up code here | ||
| 79 | // runs once when the firmware starts up | ||
| 80 | |||
| 81 | #ifdef LED_MATRIX_ENABLE | ||
| 82 | /* | ||
| 83 | * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), | ||
| 84 | * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. | ||
| 85 | */ | ||
| 86 | # if !defined(LED_MATRIX_STARTUP_SPD) | ||
| 87 | # define LED_MATRIX_STARTUP_SPD UINT8_MAX / 2 | ||
| 88 | # endif | ||
| 89 | led_matrix_set_speed(LED_MATRIX_STARTUP_SPD), | ||
| 90 | led_matrix_set_flags(LED_FLAG_ALL); | ||
| 91 | #endif | ||
| 92 | |||
| 93 | matrix_init_user(); | ||
| 94 | } | ||
diff --git a/keyboards/xbows/nature/config.h b/keyboards/xbows/nature/config.h index c1ff79335..e321f7ee1 100644 --- a/keyboards/xbows/nature/config.h +++ b/keyboards/xbows/nature/config.h | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 | 35 | # define RGB_MATRIX_LED_PROCESS_LIMIT 18 |
| 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 36 | # define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
| 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 37 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 39 | # define RGB_MATRIX_KEYPRESSES | 39 | # define RGB_MATRIX_KEYPRESSES |
| 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 40 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
| 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 41 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/keyboards/xbows/woody/config.h b/keyboards/xbows/woody/config.h index 7f396d000..ea27508da 100644 --- a/keyboards/xbows/woody/config.h +++ b/keyboards/xbows/woody/config.h | |||
| @@ -16,10 +16,10 @@ | |||
| 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 | 16 | #define RGB_MATRIX_LED_FLUSH_LIMIT 26 |
| 17 | #define DEBOUNCE 3 | 17 | #define DEBOUNCE 3 |
| 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 18 | #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | 19 | #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 20 | #define RGB_MATRIX_KEYPRESSES | 20 | #define RGB_MATRIX_KEYPRESSES |
| 21 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | 21 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 |
| 22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 22 | #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
| 23 | #define DISABLE_RGB_MATRIX_BAND_SAT | 23 | #define DISABLE_RGB_MATRIX_BAND_SAT |
| 24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 24 | #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
| 25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 25 | #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
| @@ -40,4 +40,4 @@ | |||
| 40 | #define DRIVER_1_LED_TOTAL 35 | 40 | #define DRIVER_1_LED_TOTAL 35 |
| 41 | #define DRIVER_2_LED_TOTAL 32 | 41 | #define DRIVER_2_LED_TOTAL 32 |
| 42 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | 42 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) |
| 43 | #endif \ No newline at end of file | 43 | #endif |
diff --git a/keyboards/yncognito/batpad/config.h b/keyboards/yncognito/batpad/config.h index 02c84a514..7ca4072e0 100644 --- a/keyboards/yncognito/batpad/config.h +++ b/keyboards/yncognito/batpad/config.h | |||
| @@ -47,13 +47,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 47 | 47 | ||
| 48 | #define RGB_DI_PIN B5 | 48 | #define RGB_DI_PIN B5 |
| 49 | #define DRIVER_LED_TOTAL 8 | 49 | #define DRIVER_LED_TOTAL 8 |
| 50 | #define RGB_MATRIX_KEYPRESSES | 50 | #define RGB_MATRIX_KEYPRESSES |
| 51 | #define RGB_MATRIX_KEYRELEASES | 51 | #define RGB_MATRIX_KEYRELEASES |
| 52 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 52 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 53 | #define RGB_DISABLE_AFTER_TIMEOUT 0 | 53 | #define RGB_DISABLE_AFTER_TIMEOUT 0 |
| 54 | #define RGB_DISABLE_WHEN_USB_SUSPENDED false | 54 | // #define RGB_DISABLE_WHEN_USB_SUSPENDED |
| 55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 | 55 | #define RGB_MATRIX_LED_FLUSH_LIMIT 16 |
| 56 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 | 56 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 |
| 57 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL | 57 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL |
| 58 | |||
| 59 | |||
